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
-
objThe object being compared to the current
OracleTimeStampLTZinstance.
Return Value
The method returns a number that is:
-
Less than zero: if the current
OracleTimeStampLTZinstance value is less than that ofobj. -
Zero: if the current
OracleTimeStampLTZinstance andobjvalues are equal. -
Greater than zero: if the current
OracleTimeStampLTZinstance 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
OracleTimeStampLTZs. For example, comparing anOracleTimeStampLTZinstance with anOracleBinaryinstance is not allowed. When anOracleTimeStampLTZis compared with a different type, anArgumentExceptionis thrown. -
Any
OracleTimeStampLTZthat has a value is greater than anOracleTimeStampLTZthat has a null value. -
Two
OracleTimeStampLTZs that contain a null value are equal.