StringEquals Method (String, String) |
Determines whether two specified
String objects have the same value.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static bool Equals(
string a,
string b
)
Parameters
- a
- Type: SystemString
The first string to compare, or null. - b
- Type: SystemString
The second string to compare, or null.
Return Value
Type:
Booleantrue 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.
See Also