A generic implementation of a IEqualityComparer that takes a delegate to compare with
Initializes a new instance of the EqualityComparer<T> class.
public bool Equals(T x, T y)
Determines whether the specified objects are equal.
public int GetHashCode(T obj)
Returns a hash code for this instance.