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
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
objectThe Object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.