Table of Contents

Interface IEqualityComparer

Namespace
System.Collections
Assembly
mscorlib.dll

Defines methods to support the comparison of objects for equality.

public interface IEqualityComparer
Extension Methods

Methods

Equals(object, object)

Determines whether the specified objects are equal.

bool Equals(object x, object y)

Parameters

x object

The first object to compare.

y object

The second object to compare.

Returns

bool

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

GetHashCode(object)

Returns a hash code for the specified object.

int GetHashCode(object obj)

Parameters

obj object

The Object for which a hash code is to be returned.

Returns

int

A hash code for the specified object.