Post #13694 95 Mar 12, 2026, 08:05 UTC C# is very strict about modify-while-iteratingИсточник: C++ – Schneide Blog Schneide Blog C# is very strict about modify-while-iterating Today I stumbled upon some behavior in C#’s List<> that I found very surprising. I had forgotten about RemoveAll() and basically implemented it myself: var target = 0; foreach (var each…