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
As mentioned, but with a code sample:
foreach(var item in collection.ToArray()) collection.Add(new Item...);