Bridge

SByte..::..CompareTo Method (Object)

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

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
An object to compare, or null.

Return Value

A signed number indicating the relative values of this instance and obj.Return Value Description Less than zero This instance is less than obj. Zero This instance is equal to obj. Greater than zero This instance is greater than obj.-or- obj is null.

Exceptions


ExceptionCondition
System..::..ArgumentExceptionobj is not an SByte.