Share via


String.Equals Method

Determines whether two specified String objects have the same value.

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

Syntax

[MethodImplAttribute]
public override bool Equals (
         Object obj
)

Parameters

  • obj
    The object to compare the current String to.

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 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

String Class
String Members
System Namespace