Permalink
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (23 sloc) 748 Bytes

RCS1118: Mark local variable as const

Property Value
Id RCS1118
Category General
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

string s = "a"; // RCS1118
string s2 = s + "b";

Code with Fix

const string s = "a";
string s2 = s + "b";

See Also

(Generated with DotMarkdown)