String.Equals Method
Determines whether two specified String objects have the same value.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
[MethodImplAttribute(InternalCall)]
public static bool Equals (
string a,
string b
)
Parameters
- a
A String or null. - b
A String or null.
Return Value
true if the value of a is the same as the value of b; otherwise, false.
Remarks
This method performs an ordinal (case-sensitive and culture-insensitive) comparison.
Version Information
Available in the .NET Micro Framework versions 3.0, 3.5, 4.0, and 4.1.