StringComparerStatic: Create

Create

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



 Public Function Create(
	  ByVal Culture As CultureInfo,
	  ByVal IgnoreCase As Boolean ) As StringComparer

Parameters

Culture
[ByVal] CultureInfo. A culture whose linguistic rules are used to perform a string comparison.
IgnoreCase
[ByVal] Boolean. True to specify that comparison operations be case-insensitive; False to specify that comparison operations be case-sensitive.

Return Values

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

Exceptions

Exception Condition
ArgumentNullExceptionCulture is Nothing.

See Also

Project CorLib Overview

Class StringComparerStatic Overview