Bridge

Double..::..CompareTo Method (Object)

Compares this instance to a specified object and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public int CompareTo(
	Object obj
)
<TemplateAttribute> _
Public Function CompareTo ( _
	obj As Object _
) As Integer
[TemplateAttribute]
public:
int^ CompareTo(
	Object^ obj
)

Parameters

obj
Type: System..::..Object

Return Value

A signed number indicating the relative values of this instance and value.Value Description A negative integer This instance is less than value.-or- This instance is not a number (NaN) and value is a number. Zero This instance is equal to value.-or- This instance and value are both Double.NaN, PositiveInfinity, or NegativeInfinityA positive integer This instance is greater than value.-or- This instance is a number and value is not a number (NaN).-or- value is null.

Exceptions


ExceptionCondition
System..::..ArgumentExceptionvalue is not a Double.