Bridge

String..::..CompareTo Method

Compares this instance with a specified String object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified string.

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

Syntax


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

Parameters

other
Type: System..::..String

Return Value

A 32-bit signed integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the strB parameter.Value Condition Less than zero This instance precedes strB. Zero This instance has the same position in the sort order as strB. Greater than zero This instance follows strB.-or- strB is null.