Creates a StringComparer object that compares strings according to the rules of a specified culture.
Syntax
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
Requirements
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0