Mono Class Library: System.String Overview | Members

System.String.Equals Method

Determines whether the current instance and the specified string have the same value. [Edit]

[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.MayFail)]
public bool Equals (string value)

Parameters

value
A string. [Edit]

Returns

true if the value of value is the same as the value of the current instance; otherwise, false. [Edit]

Remarks

This method checks for value equality. This comparison is case-sensitive.

Note: This method is implemented to support the IEquatable<string> interface.

[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0