✅ Would a ConcurrentDictionary be necessary if I am only adding and never removing?

Would a ConcurrentDictionary be necessary if I'm only ever adding keys and never removing them? Also I'm not using the values of the dictionary so if ConcurrentDictionary is not needed I could use a regular HashSet instead.
Was this page helpful?