Export (0) Print
Expand All

CaseInsensitiveComparer.Default Property

Gets an instance of CaseInsensitiveComparer that is associated with the Thread.CurrentCulture of the current thread and that is always available.

[Visual Basic]
Public Shared ReadOnly Property Default As CaseInsensitiveComparer
[C#]
public static CaseInsensitiveComparer Default {get;}
[C++]
public: __property static CaseInsensitiveComparer* get_Default();
[JScript]
public static function get Default() : CaseInsensitiveComparer;

Property Value

An instance of CaseInsensitiveComparer that is associated with the Thread.CurrentCulture of the current thread.

Remarks

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.

Requirements

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

See Also

CaseInsensitiveComparer Class | CaseInsensitiveComparer Members | System.Collections Namespace | Thread.CurrentCulture | System.Globalization.CompareInfo | Performing Culture-Insensitive String Operations in Collections

Show:
© 2014 Microsoft