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: 24.3.420.0 (24.3.420.0)
Syntax public int CompareTo(
Duration other
)
Public Function CompareTo (
other As Duration
) As Integer
public:
virtual int CompareTo(
Duration other
) sealed
abstract CompareTo :
other : Duration -> int
override CompareTo :
other : Duration -> int
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:
Value | Meaning |
---|
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 See Also