/// Determines whether the specified objects are equal using the equals function that was given in the constructor.
/// </summary>
/// <returns>
/// true if the specified objects are equal; otherwise, false.
/// </returns>
/// <param name="x">The first object of type <see cref="T:System.Object"/> to compare.</param><param name="y">The second object of type <see cref="T:System.Object"/> to compare.</param>
boolIEqualityComparer<T>.Equals(Tx,Ty)
boolIEqualityComparer<T>.Equals(Tx,Ty)
{
{
returnEqualsFunc(x,y);
returnEqualsFunc(x,y);
}
}
/// <summary>
/// Returns a hash code for the specified object using the getHashCode function that was given in the constructor.
/// </summary>
/// <returns>
/// A hash code for the specified object.
/// </returns>
/// <param name="obj">The <see cref="T:System.Object"/> for which a hash code is to be returned.</param><exception cref="T:System.ArgumentNullException">The type of <paramref name="obj"/> is a reference type and <paramref name="obj"/> is null.</exception>