System.StringComparer.Create Method

Creates a StringComparer object that compares strings according to the rules of a specified culture.

Syntax

public static StringComparer Create (System.Globalization.CultureInfo culture, bool ignoreCase)

Parameters

culture
A culture whose linguistic rules are used to perform a string comparison.
ignoreCase
true to specify that comparison operations be case-insensitive; false to specify that comparison operations be case-sensitive.

Returns

A new StringComparer object that performs string comparisons according to the comparison rules used by the culture parameter and the case rule specified by the ignoreCase parameter.

Remarks

Documentation for this section has not yet been entered.

Requirements

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