Bridge

Int16..::..CompareTo Method (Int16)

Compares this instance to a specified 16-bit signed integer 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 16-bit signed integer.

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

Syntax


[TemplateAttribute]
public int CompareTo(
	short other
)
<TemplateAttribute> _
Public Function CompareTo ( _
	other As Short _
) As Integer
[TemplateAttribute]
public:
int^ CompareTo(
	short^ other
)

Parameters

other
Type: System..::..Int16

Return Value

A signed number indicating the relative values of this instance and value.Return Value Description 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.