Determines whether this instance and another specified string object have the same value.
Syntax
[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.MayFail)]
public
bool Equals (
string value)
Parameters
- value
-
The string to compare to this instance.
Returns
true if the value of the value parameter is the same as this instance; otherwise, false.
Remarks
Requirements
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0