Just came across the following in some code I maintain:
foreach (Object item in group)
{
// Some code...
int i = 1;
string key = "SomeString_" + i.ToString();
// Some more code...
}
I suspect the idea was to use i
to help make the dictionary keys unique.