Click or drag to resize
DecimalCompareTo Method (Object)
Compares this instance to a specified Object.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public int CompareTo(
	Object value
)

Parameters

value
Type: SystemObject
The object to compare with this instance, or null.

Return Value

Type: Int32
A signed number indicating the relative values of this instance and value.Return Value Meaning Less than zero This instance is less than value. Zero This instance is equal to value. Greater than zero This instance is greater than value.-or- value is null.
Exceptions
ExceptionCondition
ArgumentExceptionvalue is not a Decimal.
See Also