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

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

Syntax

public static Comparer<T> Default { get; }

Value

Documentation for this section has not yet been entered.

Remarks

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.

Requirements

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