System.StringComparer.Ordinal Property

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

Syntax

public static StringComparer Ordinal { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The StringComparer returned by the StringComparer.Ordinal property 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-sensitive resources such as passwords.

The StringComparer.Ordinal 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