System.Collections.IEqualityComparer.Equals Method

Determines whether the specified objects are equal.

Syntax

public bool Equals (object x, object y)

Parameters

x
The first object to compare.
y
The second object to compare.

Returns

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

Remarks

Implement this method to provide a customized equality comparison for objects.

Requirements

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