This documentation is archived and is not being maintained.

Comparer.Default Field

Represents an instance of Comparer that is associated with the Thread.CurrentCulture of the current thread. This field is read-only.

[Visual Basic]
Public Shared ReadOnly Default As Comparer
public static readonly Comparer Default;
public: static Comparer* Default;
public static var Default : Comparer;


Comparison procedures use the Thread.CurrentCulture of the current thread to determine the sort order and casing rules. String comparisons might have different results depending on the culture. For more information on culture-specific comparisons, see the System.Globalization namespace and Developing World-Ready Applications.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Comparer Class | Comparer Members | System.Collections Namespace | Thread.CurrentCulture | System.Globalization.CompareInfo