Compares two specified NullableString structures, ignoring or honoring their case and honoring culture-specific information about their formatting.
A 32-bit signed integer indicating the lexical relationship between the two comparands.
| Value | Description |
|---|---|
| A negative integer | a is less than b. |
| Zero | a is equal to b. |
| A positive integer | a is greater than b.
-or- b is Null. |
culture specifies a CultureInfo object, which provides culture-specific information that can affect the comparison. By definition, any NullableString, including the Empty string, compares greater than a Null; and two Null compare equal to each other.
| Exception Type | Condition |
|---|---|
| ArgumentNullException | culture is a null reference (Nothing in Visual Basic). |
NullableString Class | NullableTypes Namespace | NullableString.Compare Overload List