Permalink
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (24 sloc) 786 Bytes

RCS1198: Avoid unnecessary boxing of value type

Property Value
Id RCS1198
Category Performance
Default Severity Warning
Enabled by Default -
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

string s = null;
int i = 0;

// ...

string x = s + i; // RCS1198

Code with Fix

string x = s + i.ToString();

See Also

(Generated with DotMarkdown)