Compares this NullableDecimal structure to a specified object and returns an indication of their relative values.
A signed number indicating the relative values of the instance and value.
| Value | Description |
|---|---|
| A negative integer | This instance is less than value. |
| Zero | This instance is equal to value. |
| A positive integer |
This instance is greater than value.
-or- value is a null reference (Nothing in Visual Basic) or Null. |
Any instance of NullableDecimal , regardless of its value, is considered greater than a null reference (Nothing in Visual Basic) and Null.
| Exception Type | Condition |
|---|---|
| ArgumentException | The value is neither null or of type NullableDecimal. |
NullableDecimal Class | NullableTypes Namespace