System.Collections.Generic
Interface IEqualityComparer<T>


public interface IEqualityComparer<T>

Defines methods to support the comparison of objects for equality.

Author:
Halofreak1990

Method Summary
 boolean Equals(T x, T y)
          Determines whether the specified objects are equal.
 int GetHashCode(T obj)
          Returns a hash code for the specified object.
 

Method Detail

Equals

boolean Equals(T x,
               T y)
Determines whether the specified objects are equal.

Parameters:
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.

GetHashCode

int GetHashCode(T obj)
Returns a hash code for the specified object.

Parameters:
obj - The Object for which a hash code is to be returned.
Returns:
A hash code for the specified object.