Namespace: System.Collections.Generic
IEqualityComparer<T>
Defines methods to support the comparison of objects for equality.
Methods (2)
bool Equals(T,T)
Determines whether the specified objects are equal.
| Parameter | Description |
|---|---|
| x | The first object of type T to compare. |
| y | The second object of type T to compare. |
Returns: true if the specified objects are equal; otherwise, false.
int GetHashCode(T)
Returns a hash code for the specified object.
| Parameter | Description |
|---|---|
| obj | The Object for which a hash code is to be returned. |
Returns: A hash code for the specified object.