EqualityComparer<T>.Default Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns a default equality comparer for the type specified by the generic argument.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.Collections.Generic.EqualityComparer<T>The default instance of the EqualityComparer<T> class for type T.
The Default property checks whether type T implements the System.IEquatable<T> generic interface and if so returns an EqualityComparer<T> that uses that implementation. Otherwise it returns an EqualityComparer<T> that uses the overrides of Object.Equals and Object.GetHashCode provided by T.