Top "Concurrentdictionary" questions

ConcurrentDictionary is a .Net thread-safe collection of key-value pairs that can be accessed by multiple threads at the same time.

How to initialize a ConcurrentDictionary? Error: "Cannot access private method 'Add' here"

I have a static class in which I am using dictionaries as lookup tables to map between .NET types and …

c# dictionary private concurrentdictionary idictionary
Is ConcurrentDictionary ContainsKey method synched?

Simple question Assume that i have a ConcurrentDictionary I use TryAdd and ContainsKey methods Now assume that from 100 threads i …

c# multithreading concurrentdictionary
ConcurrentDictionary GetOrAdd async

I want to use something like GetOrAdd with a ConcurrentDictionary as a cache to a webservice. Is there an async …

c# .net asynchronous concurrency concurrentdictionary
How can I tell `ConcurrentDictionary.GetOrAdd` to not add a value?

I have several cases where I use ConcurrentDictionary<TKey, TValue> for caching of values, but often times I …

c# concurrentdictionary