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

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


public static Comparer<T> Default { get; }


Documentation for this section has not yet been entered.


The Comparer`1 returned by this property uses the IComparable`1 generic interface (IComparable<T> in C#, IComparable(Of T) in Visual Basic) to compare two objects. If type T does not implement the IComparable`1 generic interface, this property returns a Comparer`1 that uses the IComparable interface.


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