Bridge

String..::..Compare Method (String, String)

Compares two specified String objects and returns an integer that indicates their relative position in the sort order.

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

Syntax


[TemplateAttribute]
public static int Compare(
	string strA,
	string strB
)
<TemplateAttribute> _
Public Shared Function Compare ( _
	strA As String, _
	strB As String _
) As Integer
[TemplateAttribute]
public:
static int^ Compare(
	String^ strA, 
	String^ strB
)

Parameters

strA
Type: System..::..String
The first string to compare.
strB
Type: System..::..String
The second string to compare.

Return Value

A 32-bit signed integer that indicates the lexical relationship between the two comparands.Value Condition Less than zero strA precedes strB in the sort order. Zero strA occurs in the same position as strB in the sort order. Greater than zero strA follows strB in the sort order.