NullableTypes Class Library

NullableString.CompareOrdinal Method (NullableString, NullableString)

Compares two specified NullableString structures without considering the local national language or culture.

[Visual Basic]
Overloads Public Shared Function CompareOrdinal( _
   ByVal a As NullableString, _
   ByVal b As NullableString _
) As Integer
[C#]
public static int CompareOrdinal(
   NullableString a,
   NullableString b
);

Parameters

a
A NullableString structure.
b
A NullableString structure.

Return Value

A 32-bit signed integer indicating the lexical relationship between the two comparands.

ValueDescription
A negative integera is less than b.
Zeroa is equal to b.
A positive integera is greater than b.

-or-

b is Null.

Remarks

By definition, any NullableString, including the Empty string, compares greater than a Null; and two Null compare equal to each other.

See Also

NullableString Class | NullableTypes Namespace | NullableString.CompareOrdinal Overload List