Mono Class Library: System.Collections.Generic.IEqualityComparer<T> Overview | Members

System.Collections.Generic.IEqualityComparer<T>.Equals Method

Determines whether the specified objects are equal. [Edit]

public bool Equals (T x, T y)

Parameters

x
First T to compare. [Edit]
y
Second T to compare. [Edit]

Returns

true if the specified objects are equal; otherwise, false. [Edit]

Remarks

An implementation of Equals(T,T) shall satisfy the following: The equality function shall be be reflexive, so x.Equals(x) is true; symmetric, so x.Equals(y) and y.Equals(x); and transitive, so x.Equals(y) and y.Equals(z) implies x.Equals(z); for any values x, y and z for which these expressions are defined. [Edit]

Requirements

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0