System.StringComparer.OrdinalIgnoreCase Property

Gets a StringComparer object that performs a case-insensitive ordinal string comparison.

Syntax

public static StringComparer OrdinalIgnoreCase { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The StringComparer returned by the StringComparer.OrdinalIgnoreCase property treats the characters in the strings to compare as if they were converted to uppercase using the conventions of the invariant culture, and then performs a simple byte comparison that is independent of language. This is most appropriate when comparing strings that are generated programmatically or when comparing case-insensitive resources such as paths and filenames.

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

Requirements

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