Class SystemDictionary<TKey, TValue>.EqualityComparer
- Namespace
- AlgorithmsSW.HashTable
- Assembly
- AlgorithmsSW.dll
public class SystemDictionary<TKey, TValue>.EqualityComparer : IEqualityComparer<TKey>
- Inheritance
-
SystemDictionary<TKey, TValue>.EqualityComparer
- Implements
-
IEqualityComparer<TKey>
- Inherited Members
- Extension Methods
Constructors
EqualityComparer(IComparer<TKey>)
public EqualityComparer(IComparer<TKey> comparer)
Parameters
comparer
IComparer<TKey>
Methods
Equals(TKey?, TKey?)
Determines whether the specified objects are equal.
public bool Equals(TKey? x, TKey? y)
Parameters
x
TKeyThe first object of type
T
to compare.y
TKeyThe second object of type
T
to compare.
Returns
GetHashCode(TKey)
Returns a hash code for the specified object.
public int GetHashCode(TKey obj)
Parameters
obj
TKeyThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.