Can I remove items from a ConcurrentDictionary from within an enumeration loop of that dictionary?
It’s strange to me that you’ve now received two answers that seem to confirm you can’t do this. I just tested it myself and it worked fine without throwing any exception. Below is the code I used to test the behavior, followed by an excerpt of the output (around when I pressed ‘C’ to clear … Read more