14.10.8.9 CompareTo
This method compares the current OracleTimeStampTZ 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 OracleTimeStampTZinstance.
Return Value
The method returns a number that is:
Less than zero: if the current OracleTimeStampTZ instance value is less than that of obj.
                  
Zero: if the current OracleTimeStampTZ instance and obj values are equal.
                  
Greater than zero: if the current OracleTimeStampTZ instance value is greater than that of obj.
                  
Implements
IComparable 
                  
Exceptions
ArgumentException - The obj is not of type OracleTimeStampTZ.
                  
Remarks
The following rules apply to the behavior of this method.
- 
                        The comparison must be between OracleTimeStampTZs. For example, comparing anOracleTimeStampTZinstance with anOracleBinaryinstance is not allowed. When anOracleTimeStampTZis compared with a different type, anArgumentExceptionis thrown.
- 
                        Any OracleTimeStampTZthat has a value is greater than anOracleTimeStampTZthat has a null value.
- 
                        Two OracleTimeStampTZs that contain a null value are equal.