CompareTo
This method compares the current OracleTimeStampLTZ
instance to an object, and returns an integer that represents their relative values.
Declaration
// C#
public int CompareTo(object obj);
Parameters
-
obj
The object being compared to the current
OracleTimeStampLTZ
instance.
Return Value
The method returns a number that is:
-
Less than zero: if the current
OracleTimeStampLTZ
instance value is less than that ofobj
. -
Zero: if the current
OracleTimeStampLTZ
instance andobj
values are equal. -
Greater than zero: if the current
OracleTimeStampLTZ
instance value is greater than that ofobj
.
Implements
IComparable
Exceptions
ArgumentException
- The obj
parameter is not of type OracleTimeStampLTZ
.
Remarks
The following rules apply to the behavior of this method.
-
The comparison must be between
OracleTimeStampLTZ
s. For example, comparing anOracleTimeStampLTZ
instance with anOracleBinary
instance is not allowed. When anOracleTimeStampLTZ
is compared with a different type, anArgumentException
is thrown. -
Any
OracleTimeStampLTZ
that has a value is greater than anOracleTimeStampLTZ
that has a null value. -
Two
OracleTimeStampLTZ
s that contain a null value are equal.