© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
11 replies
nathanAjacobs

✅ 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.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ Filter a ConcurrentDictionary
C#CC# / help
3y ago
❔ Override ConcurrentDictionary EqualityComparer<TValue>?
C#CC# / help
3y ago
❔ I am having trouble with visual studio code, would be glad if someone could help me out.
C#CC# / help
3y ago
how do i check if a string contains only words and space
C#CC# / help
2y ago