RangeTCompareTo(Object) Method

Compares this instance to a specified Object and returns an indication of their relative values.

Definition

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.2.9017.0
C#
public int CompareTo(
	Object? obj
)

Parameters

obj  Object
An Object to compare, or a null reference.

Return Value

Int32
A signed number indicating the relative values of this instance and obj. The return value has these meanings:
Valuemeaning
Less than zeroThis instance is less than obj
ZeroThis instance is equal to or contains obj
Greater than zeroThis instance is greater than obj

Implements

IComparableCompareTo(Object)

Exceptions

ArgumentExceptionobj is not the same type as this instance.

See Also