Click or drag to resize
EqualityComparerT Class
Provides a base class for implementations of the IEqualityComparerT generic interface.
Inheritance Hierarchy
SystemObject
  System.Collections.GenericEqualityComparerT

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public abstract class EqualityComparer<T> : IEqualityComparer, 
	IEqualityComparer<T>

Type Parameters

T
The type of objects to compare.

The EqualityComparerT type exposes the following members.

Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodEquals(T, T)
When overridden in a derived class, determines whether two objects of type T are equal.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetHashCode(T)
When overridden in a derived class, serves as a hash function for the specified object for hashing algorithms and data structures, such as a hash table.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyStatic memberDefault
Returns a default equality comparer for the type specified by the generic argument.
Top
See Also