PeriodCompare To Method
Compares this instance to a specified object and returns an indication of their relative values
Definition
Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
Returns -1 if this instance is less than the value, 0 if they are equal, or 1 if this instance is greater than the value or the value is null.
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
C#
public int CompareTo(
Object obj
)VB
Public Function CompareTo (
obj As Object
) As IntegerC++
public:
virtual int CompareTo(
Object^ obj
) sealedF#
abstract CompareTo :
obj : Object -> int
override CompareTo :
obj : Object -> int Parameters
- obj Object
- An object to compare or null
Return Value
Int32Returns -1 if this instance is less than the value, 0 if they are equal, or 1 if this instance is greater than the value or the value is null.
Implements
IComparableCompareTo(Object)Exceptions
| ArgumentException | This is thrown if the object to be compared is not a Period. |