System.Collections.Generic.EqualityComparer<T>.Default Property

Returns a default equality comparer for the type specified by the generic argument.

Syntax

public static EqualityComparer<T> Default { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The EqualityComparer`1.Default property checks whether type T implements the IEquatable`1 interface and, if so, returns an EqualityComparer`1 that uses that implementation. Otherwise, it returns an EqualityComparer`1 that uses the overrides of object.Equals(object) and object.GetHashCode provided by T.

Requirements

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