Is there a good way to enumerate through only a subset of a Collection in C#? That is, I have a collection of a large number of objects (say, 1000), but I\'d like to enumerate
I like to keep it simple (if you don't necessarily need the enumerator):
for (int i = 249; i < Math.Min(340, list.Count); i++) { // do something with list[i] }