Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 553 Bytes

RCS1198.md

File metadata and controls

33 lines (21 loc) · 553 Bytes

RCS1198: Avoid unnecessary boxing of value type

Property Value
Id RCS1198
Category Performance
Severity None

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)