Bridge

Char..::..CompareTo Method (Object)

Compares this instance to a specified object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as 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 position of this instance in the sort order in relation to the value parameter.Return Value Description Less than zero This instance precedes value. Zero This instance has the same position in the sort order as value. Greater than zero This instance follows value.-or- value is null.

Exceptions


ExceptionCondition
System..::..ArgumentExceptionvalue is not a Char object.