System
Interface IComparable<T>

Type Parameters:
T -
All Known Implementing Classes:
TimeSpan

public interface IComparable<T>

Defines a generalized comparison method that a value type or class implements to create a type-specific comparison method for ordering instances.

Author:
Halofreak1990

Method Summary
 int CompareTo(T other)
          Compares the current object with an object of the same type.
 

Method Detail

CompareTo

int CompareTo(T other)
Compares the current object with an object of the same type.

Parameters:
other - An object to compare with this object.
Returns:
A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has the following meanings: Value Meaning Less than zero This object is less than the other parameter. Zero This object is equal to other. Greater than zero This object is greater than other.