Bridge

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

Compares two specified String objects, ignoring or honoring their case, 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,
	bool ignoreCase
)
<TemplateAttribute> _
Public Shared Function Compare ( _
	strA As String, _
	strB As String, _
	ignoreCase As Boolean _
) As Integer
[TemplateAttribute]
public:
static int^ Compare(
	String^ strA, 
	String^ strB, 
	bool^ ignoreCase
)

Parameters

strA
Type: System..::..String
The first string to compare.
strB
Type: System..::..String
The second string to compare.
ignoreCase
Type: System..::..Boolean
true to ignore case during the comparison; otherwise, false.

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.