Partager 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 == (
         string a,
         string b
)

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, 4.1, and 4.2.

See Also

Reference

String Class
String Members
System Namespace