Bridge

Enum..::..CompareTo Method

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 target
)
<TemplateAttribute> _
Public Function CompareTo ( _
	target As Object _
) As Integer
[TemplateAttribute]
public:
int^ CompareTo(
	Object^ target
)

Parameters

target
Type: System..::..Object
An object to compare, or null.

Return Value

A signed number that indicates the relative values of this instance and target.Value Meaning Less than zero The value of this instance is less than the value of target. Zero The value of this instance is equal to the value of target. Greater than zero The value of this instance is greater than the value of target.-or- target is null.

Exceptions


ExceptionCondition
System..::..ArgumentExceptiontarget and this instance are not the same type.
System..::..InvalidOperationExceptionThis instance is not type SByte, Int16, Int32, Int64, Byte, UInt16, UInt32, or UInt64.