14.6.8.1 CompareTo
This method compares the current OracleIntervalYM instance to the supplied object, and returns an integer that represents their relative values.
                  
Declaration
// C#
public int CompareTo(object obj);Parameters
- 
                        
objThe supplied object.
 
Return Value
The method returns a number:
Less than zero: if the current OracleIntervalYM represents a shorter time interval than obj.
Zero: if the current OracleIntervalYM and obj represent the same time interval.
                  
Greater than zero: if the current OracleIntervalYM represents a longer time interval than obj.
Implements
IComparable 
                  
Exceptions
ArgumentException - The obj parameter is not of type OracleIntervalYM.
                  
Remarks
The following rules apply to the behavior of this method.
- 
                        
The comparison must be between
OracleIntervalYMs. For example, comparing anOracleIntervalYMinstance with anOracleBinaryinstance is not allowed. When anOracleIntervalYMis compared with a different type, anArgumentExceptionis thrown. - 
                        
Any
OracleIntervalYMthat has a value compares greater than anOracleIntervalYMthat has a null value. - 
                        
Two
OracleIntervalYMs that contain a null value are equal.