Click or drag to resize

DurationCompareTo Method (Duration)

Compares this instance with another instance of the same type.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 21.1.408.0 (21.1.408.0)
Syntax
public int CompareTo(
	Duration other
)

Parameters

other
Type: AGI.Foundation.TimeDuration
An object to compare with this instance.

Return Value

Type: Int32
A value indicating the relative order of the objects being compared. The return value has these meanings:
ValueMeaning
Less than zero This instance is less than other.
Zero This instance is equal to other.
Greater than zero This instance is greater than other.

Implements

IComparableTCompareTo(T)
Exceptions
ExceptionCondition
ArgumentException Thrown when comparing this object to a Duration defined in a different TimeStandard.
See Also