Bridge

String..::..Equals Method (String, String, StringComparison)

Determines whether two specified String objects have the same value. A parameter specifies the culture, case, and sort rules used in the comparison.

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

Syntax


[TemplateAttribute]
public static bool Equals(
	string a,
	string b,
	StringComparison comparisonType
)
<TemplateAttribute> _
Public Shared Function Equals ( _
	a As String, _
	b As String, _
	comparisonType As StringComparison _
) As Boolean
[TemplateAttribute]
public:
static bool^ Equals(
	String^ a, 
	String^ b, 
	StringComparison^ comparisonType
)

Parameters

a
Type: System..::..String
The first string to compare, or null.
b
Type: System..::..String
The second string to compare, or null.
comparisonType
Type: System..::..StringComparison
One of the enumeration values that specifies the rules for the comparison.

Return Value

true if the value of a is the same as the value of b; otherwise, false. If both a and b are null, the method returns true.