← Interactive API Explorer
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.
ParameterDescription
xThe first object of type T to compare.
yThe 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.
ParameterDescription
objThe Object for which a hash code is to be returned.
Returns: A hash code for the specified object.