Fetching contributors…
Cannot retrieve contributors at this time
36 lines (26 sloc) 826 Bytes

RCS1124: Inline local variable

Property Value
Id RCS1124
Category Simplification
Default Severity Hidden
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer


Code with Diagnostic

IEnumerable<object> items = GetValues(); // RCS1124
foreach (object item in items)

Code with Fix

foreach (object item in GetValues())

See Also

(Generated with DotMarkdown)