Compartir a través de


StringComparer.InvariantCultureIgnoreCase Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a StringComparer object that performs a case-insensitive string comparison using the word comparison rules of the invariant culture.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Shared ReadOnly Property InvariantCultureIgnoreCase As StringComparer
public static StringComparer InvariantCultureIgnoreCase { get; }

Property Value

Type: System.StringComparer
A new StringComparer object.

Remarks

The StringComparer returned by the InvariantCultureIgnoreCase property compares strings in a linguistically relevant manner that ignores case, but it is not suitable for display in any particular culture. Its major application is to order strings in a way that will be identical across cultures.

The invariant culture is the CultureInfo object returned by the InvariantCulture property.

The InvariantCultureIgnoreCase property actually returns an instance of an anonymous class derived from the StringComparer class.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.