Endjin - Home


Since .NET 4.0, the ConcurrentDictionary<TKey, TValue>¬†collection type has been available as a way of ensuring thread-safe access to a collection of key/value pairs, using fine grained locking. The collection also has AddOrUpdate and GetOrAdd methods that accept delegate value factories, so that you can lazily load your values only when you need to initialize them. […]