Property | Value |
---|---|
Id | RR0188 |
Title | Convert 'foreach' to 'for' and reverse loop |
Syntax | foreach statement |
Enabled by Default | - |
foreach (object item in items)
{
yield return item;
}
for (int i = items.Count - 1; i >= 0; i--)
{
yield return items[i];
}
(Generated with DotMarkdown)