Class EquivalentExtensions
Extensions methods for the Equivalent interface.
public static class EquivalentExtensions
- Inheritance
-
EquivalentExtensions
- Inherited Members
Methods
DictionaryEquivalent<Key, Value, OtherValue>(IDictionary<Key, Value>, IDictionary<Key, OtherValue>)
Returns true if two dictionaryies contain the same keys, and if each value is the same between the two.
public static bool DictionaryEquivalent<Key, Value, OtherValue>(this IDictionary<Key, Value> source, IDictionary<Key, OtherValue> other) where Value : Equivalent
Parameters
sourceIDictionary<Key, Value>otherIDictionary<Key, OtherValue>
Returns
Type Parameters
KeyValueOtherValue
SetEquivalent<T, U>(IEnumerable<T>, IEnumerable<U>)
Returns true if the elements of the set are equivalent
public static bool SetEquivalent<T, U>(this IEnumerable<T> source, IEnumerable<U> other) where T : Equivalent
Parameters
sourceIEnumerable<T>otherIEnumerable<U>
Returns
Type Parameters
TU