interface IEqualityComparer
in global :: System . Collections
Defines methods to support the comparison of objects for equality.
public bool Equals( object x, object y )
Determines whether the specified objects are equal.
xThe first object to compare.yThe second object to compare.- Returns if the specified objects are equal; otherwise, .
public int GetHashCode( object obj )
Returns a hash code for the specified object.
objThe for which a hash code is to be returned.- Returns A hash code for the specified object.