remove from a List<T> within a foreach
I have code that I want to look like this: List<Type> Os; ... foreach (Type o in Os) if (o.cond) return; // quiting early is important for my case! else Os.Remove(o); ... // other code This doesn't work because you can't remove from a list inside a foreach over that list: Is there a common way to solve th...