This rule detects when some methods, like Clone(), Substring(0),
ToString() or ToString(IFormatProvider), are being called on a
string instance. Since these calls all return the original string they don't do anything
useful and should be carefully reviewed to see if they are working as intended and,
if they are, the method call can be removed.
See Also:
AvoidUnneededCallsOnStringRule Members
Syntax
Remarks
Example
Example
Requirements
Namespace: Gendarme.Rules.Performance
Assembly: Gendarme.Rules.Performance (in Gendarme.Rules.Performance.dll)
Assembly Versions: 2.8.0.0