In C# whenever you loop through items, and make any changes to these items, or add a new one, or remove one, it will crap out. This is a really bad limitation of the language. There HAS to be a way around this. Anyone know how?
The only way I can think of is to break out of the loop, do the change, keep track of where you were, then start a whole new loop while skipping the items that were already done. This seems like a pretty counter productive way of doing things though. There has to be a better way.
The only way I can think of is to break out of the loop, do the change, keep track of where you were, then start a whole new loop while skipping the items that were already done. This seems like a pretty counter productive way of doing things though. There has to be a better way.