StringComparerStatic: Ordinal (get)

Ordinal

Gets a StringComparer object that provides case-sensitive string comparisons.



 Public Property Get Ordinal ( ) As StringComparer

Return Values

StringComparer -  A StringComparer object that is case-sensitive.

Remarks

The comparison is done in a similar fashion as using the standard equality check of two VisualBasic strings in a variant culture manner.

The StringComparer object can be retrieved using the following code.

   Dim c As StringComparer
   Set c = StringComparer.Ordinal
 

The instance of the StringComparer object returned is a private class and simply implements the StringComparer interface.

Read Only.

See Also

Project CorLib Overview

Class StringComparerStatic Overview