Permalink
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (30 sloc) 870 Bytes

RCS1097: Remove redundant 'ToString' call

Property Value
Id RCS1097
Category Redundancy
Default Severity Info
Enabled by Default
Supports Fade-Out
Supports Fade-Out Analyzer -

Examples

Code with Diagnostic

string x = s.ToString(); // RCS1097

Code with Fix

string x = s;

Code with Diagnostic

string x = $"{s.ToString()}"; // RCS1097

Code with Fix

string x = $"{s}";

See Also

(Generated with DotMarkdown)