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
comparerIComparer<TKey>
Methods
Equals(TKey?, TKey?)
Determines whether the specified objects are equal.
public bool Equals(TKey? x, TKey? y)
Parameters
xTKeyThe first object of type
Tto compare.yTKeyThe second object of type
Tto compare.
Returns
GetHashCode(TKey)
Returns a hash code for the specified object.
public int GetHashCode(TKey obj)
Parameters
objTKeyThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.