CompareTo
This method compares the current OracleIntervalDS 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. 
Return Value
The method returns:
- 
                        Less than zero: if the current OracleIntervalDSrepresents a shorter time interval thanobj.
- 
                        Zero: if the current OracleIntervalDSandobjrepresent the same time interval.
- 
                        Greater than zero: if the current OracleIntervalDSrepresents a longer time interval thanobj.
Implements
IComparable 
                  
Exceptions
ArgumentException - The obj parameter is not of type OracleIntervalDS.
                  
Remarks
The following rules apply to the behavior of this method.
- 
                        The comparison must be between OracleIntervalDSs. For example, comparing anOracleIntervalDSinstance with anOracleBinaryinstance is not allowed. When anOracleIntervalDSis compared with a different type, anArgumentExceptionis thrown.
- 
                        Any OracleIntervalDSthat has a value compares greater than anOracleIntervalDSthat has a null value.
- 
                        Two OracleIntervalDSs that contain a null value are equal.