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.

  • x The first object to compare.
  • y The 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.

  • obj The for which a hash code is to be returned.
  • Returns A hash code for the specified object.