Compares this NullableSingle 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 -or- This instance is not a number (NaN) and value is a number. |
| Zero |
This instance is equal to value -or- This instance and value are both NaN, PositiveInfinity or NegativeInfinity. |
| A positive integer |
This instance is greater than value -or- this instance is a number and value is not a number (NaN)-or- value is a null reference (Nothing)or Null. |
Any instance of NullableSingle , regardless of its value, is considered greater than a null reference (Nothing in Visual Basic) and Null.
This behavior follow CLR specifications while Operator== follows different IEEE 754 specs.
| Exception Type | Condition |
|---|---|
| ArgumentException | The value is neither null or of type NullableSingle. |
NullableSingle Class | NullableTypes Namespace