EqualityComparer(Of T) Class
Provides a base class for implementations of the IEqualityComparer(Of T) generic interface.
Assembly: mscorlib (in mscorlib.dll)
Thetype exposes the following members.
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Equals(T, T)||When overridden in a derived class, determines whether two objects of type T are equal.|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetHashCode(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.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
Derive from this class to provide a custom implementation of the IEqualityComparer(Of T) generic interface for use with collection classes such as the Dictionary(Of TKey, TValue) generic class, or with methods such as List(Of T).Sort.
The Default property checks whether type T implements the System.IEquatable(Of T) generic interface and if so returns an that uses that implementation. Otherwise it returns an that uses the overrides of Object.Equals and Object.GetHashCode provided by T.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.