Method CompareTo
CompareTo(DateTimeRange)
Compares this instance with another DateTimeRange instance. If the instances are equal, returns zero. If this instance is less than other
then -1 one is returned.
If this instance is greater than other
then 1 one is returned.
Declaration
public int CompareTo(DateTimeRange other)
Parameters
Type | Name | Description |
---|---|---|
DateTimeRange | other | A DateTimeRange to compare to this instance. |
Returns
Type | Description |
---|---|
System.Int32 | An integer containing the result of the comparions. -1 for less than, 0 for equal, and 1 for greater than. |
Implements
System.IComparable<T>.CompareTo(T)