Share via


String.operator == Method

Determines whether two specified String objects have the same value.

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

Syntax

[MethodImplAttribute]
public static bool operator == (
         stringa,
         stringb
)

Parameters

  • a
    A String object or a null reference.
  • b
    A String object or a null reference.

Return Value

true if the value of a is the same as the value of b; otherwise, false.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

String Class
String Members
System Namespace