Table of Contents

Class EquivalentExtensions

Namespace
CriusNyx.Util
Assembly
CriusNyxUtil.dll

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

source IDictionary<Key, Value>
other IDictionary<Key, OtherValue>

Returns

bool

Type Parameters

Key
Value
OtherValue

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

source IEnumerable<T>
other IEnumerable<U>

Returns

bool

Type Parameters

T
U