MoneyIComparableCompareTo Method

Compares the current instance with another object of the same type.

Definition

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

Parameters

obj  Object
An object to compare with this instance.

Return Value

Int32
A 32-bit signed integer that indicates the relative order of the comparands. The return value has these meanings:
Valuemeaning
Less than zeroThis instance is less than obj
Zeroobj
Greater than zeroThis instance is greater than obj

Implements

IComparableCompareTo(Object)

Exceptions

ArgumentExceptionobj is not a Money or a decimal.

See Also