Duration CompareTo Method Noda Time
Compares the current object with another object of the same type.

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: 1.3.0.0 (1.3.1)
Syntax

public int CompareTo(
	Duration other
)

Parameters

other
Type: NodaTime Duration
An object to compare with this object.

Return Value

Type: OnlineInt32
A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has the following meanings:
ValueMeaning
< 0This object is less than the other parameter.
0This object is equal to other.
> 0This object is greater than other.

Implements

OnlineIComparable T  CompareTo(T)
Version Information

Available since: 1.0.0
Supported in the PCL? Yes
See Also