Permalink
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (25 sloc) 804 Bytes

RCS1177: Use 'var' instead of explicit type (in foreach)

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

Example

Code with Diagnostic

foreach (string item in items) // RCS1177
{
}

Code with Fix

foreach (var item in items)
{
}

See Also

(Generated with DotMarkdown)