I have a static dictionary in a multi thread application. class A Reads the dictionary and class B Removes from it. I want to lock dictionary when removing from it or reading fr
Use a ConcurrentDictionary.
ConcurrentDictionary