When should I use ConcurrentDictionary and Dictionary?
“Use ConcurrentDictionary if you use your dictionary in a lot in code” is kind of vague advice. I don’t blame you for the confusion. ConcurrentDictionary is primarily for use in an environment where you’re updating the dictionary from multiple threads (or async tasks). You can use a standard Dictionary from as much code as you … Read more