Noda Time
CompareTo Method (other)
NamespacesNodaTimeDurationCompareTo(Duration)
Compares the current object with another object of the same type.
Declaration Syntax
C#Visual BasicVisual C++
public int CompareTo(
	Duration other
)
Public Function CompareTo ( 
	other As Duration
) As Integer
public:
virtual int CompareTo(
	Duration other
) sealed
Parameters
other (Duration)
An object to compare with this object.
Return Value
Int32
A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has the following meanings:
ValueMeaning
< 0
This object is less than the other parameter.
0
This object is equal to other.
> 0
This object is greater than other.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.1.0.0 (1.1.1)