Permalink
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (23 sloc) 782 Bytes

RCS1217: Replace interpolated string with concatenation

Property Value
Id RCS1217
Category Readability
Default Severity Hidden
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer

Example

Code with Diagnostic

string x = null;
// ...

string y = $"{x}{x}{x}"; // RCS1217

Code with Fix

string y = x + x + x;

See Also

(Generated with DotMarkdown)