Quantcast
Channel: Answers for "Out of sync error when iterating over a Dictionary"
Viewing all articles
Browse latest Browse all 8

Answer by AndyMartin458

$
0
0
Before I saw @furic 's answer to create a list out of the keys, I did this. Thought someone might find it useful. Item[] items = new Item[m_dict.Count]; m_dict.Values.CopyTo(items, 0); foreach (Item item in items) { Destroy(item); m_dict.remove(item); }

Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>