RCS1177: Use 'var' instead of explicit type (in foreach)
WARNING
This analyzer is obsolete. Use RCS1264 instead.
Properties
Property | Value |
---|---|
Default Severity | disabled by default |
Minimum language version | - |
Examples
Example #1
diagnostic.cs
foreach (string item in items)
{
}
fix.cs
foreach (var item in items)
{
}