A new feature in C# / .NET 4.0 is that you can change your enumerable in a foreach without getting the exception. See Paul Jackson\'s blog entry An Interest
foreach
You should really use for() instead of foreach() in this case.
for()
foreach()