HybridDictionaries – Careful!
Jul.31, 2008
1 Comment
I was refactoring some code the other day, and I noticed that at one point, there was code that created a foreach loop, but it was keeping track of an index inside, by manually incrementing at the end of the foreach loop. Something like this: int index = 0; foreach (Widget widget in WidgetBasket) { [...]
