JaCIL Framework API

Ordinal.CompareTo Method (Object)

Compares this ordinal to another object.

public int CompareTo(
   object other
);

Parameters

other
The object to compare. It must be an ordinal object.

Return Value

An integer < 0 if this object is less than the other. An integer > 0 if this object is greather than the other. 0 if this object is equal to the other.

Implements

IComparable.CompareTo

Exceptions

Exception Type Condition
ArgumentException Thrown if the argument is null or not an ordinal.

See Also

Ordinal Class | JaCIL.Compiler.Instruction Namespace | Ordinal.CompareTo Overload List