System.Collections.CaseInsensitiveComparer Members

The members of System.Collections.CaseInsensitiveComparer are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the CaseInsensitiveComparer class using the System.Threading.Thread.CurrentCulture of the current thread.

Initializes a new instance of the CaseInsensitiveComparer class using the specified System.Globalization.CultureInfo.

Public Properties

[read-only]
static
DefaultCaseInsensitiveComparer.

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

[read-only]
static
DefaultInvariantCaseInsensitiveComparer.

Gets an instance of CaseInsensitiveComparer that is associated with System.Globalization.CultureInfo.InvariantCulture and that is always available.

Public Methods

Compare(object, object) : int

Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other.