Collection was modified; enumeration operation may not execute.
I’m sure one of the first exceptions any of us get as C# devs is when we try to iterate over a List (or other enumerable) and attempt to remove an item. This results in the exception: InvalidOperationException was unhandled. Collection was modified; enumeration operation may not execute. The easy solution is just to create […]
. Read more