TechTalk Genome v4.2

NullableSingle.CompareTo Method 

Compares this NullableSingle structure to a specified object and returns an indication of their relative values.

public int CompareTo(
   object value
);

Parameters

value
An object to compare, or a null reference (Nothing in Visual Basic).

Return Value

A signed number indicating the relative values of the instance and value.

ValueDescription
A negative integer This instance is less than value

-or-

This instance is not a number (Single.NaN) and value is a number.
Zero This instance is equal to value

-or-

This instance and value are both Single.NaN, Single.PositiveInfinity or Single.NegativeInfinity.
A positive integer This instance is greater than value

-or-

this instance is a number and value is not a number (Single.NaN)

-or-

value is a null reference (Nothing)or Null.

Implements

IComparable.CompareTo

Remarks

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.

Exceptions

Exception TypeCondition
ArgumentException The value is neither null or of type NullableSingle.

Requirements

Namespace: TechTalk.Genome.NullableTypes

Assembly: TechTalk.Genome (in TechTalk.Genome.dll)

Version: 4.2.4.4

Editions: Professional, Evaluation, Express

See Also

NullableSingle Class | TechTalk.Genome.NullableTypes Namespace