Hello, 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 for info on this change.
So I'm asking: what is the best way to do this:
foreach(var item in Enumerable)
{
foreach(var item2 in item.Enumerable)
{
item.Add(new item2)
}
}
Usualy I use a IList as a cache/buffer until the end of the foreach but I'm sure there is better way :)