StringComparerStatic: CurrentCulture (get) |
Gets a StringComparer object that performs a case-sensitive string comparison using the word comparison rules of the current culture.
Public Property Get CurrentCulture ( ) As StringComparer
The StringComparer returned by the CurrentCulture property can be used when strings are linguistically relevant. For example, if strings are displayed to the user, or if strings are the result of user interaction, culture-sensitive string comparison should be used to order the string data.
The current culture is the CultureInfo object associated with the current thread.
The StringComparer can be accessed using the following code.
Set c = StringComparer.CurrentCulture
Each call to the CurrentCulture property get accessor returns a new StringComparer object.
Read Only.