Visual Studio Code – foreach is throwing 'Collection was modified' error
I'm using a monoGame template in Visual Studio, and I'm making an endless runner (similar to Chrome Dino). In the LoadContent class I've used Enqueue to put my obstacles into a Queue list. Note: I've only given the code for…