StringComparerStatic: CurrentCultureIgnoreCase (get)

CurrentCultureIgnoreCase

Gets a StringComparer object that performs a case-insensitive string comparison using the word comparison rules of the current culture.



 Public Property Get CurrentCultureIgnoreCase ( ) As StringComparer

Return Values

StringComparer -  A new StringComparer object.

Remarks

The current culture is the CultureInfo object associated with the current thread.

The StringComparer returned by the CurrentCultureIgnoreCase property can be used when strings are linguistically relevant but their case is not. For example, if strings are displayed to the user but case is unimportant, culture-sensitive, case-insensitive string comparison should be used to order the string data.

Set c = StringComparer.CurrentCultureIgnoreCase

Each call to the CurrentCultureIgnoreCase property get accessor returns a new StringComparer object.

Read Only.

See Also

Project CorLib Overview

Class StringComparerStatic Overview