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

RCS1214: Unnecessary interpolated string

Property Value
Id RCS1214
Category Simplification
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer

Example

Code with Diagnostic

string x = null;
// ...

string y = $"{x}";

Code with Fix

string y = x;

See Also

(Generated with DotMarkdown)