Previous Docs Version

The documentation you are viewing is for a previous version of the Vendr product. Click here to jump to the current stable version.

LazyConcurrentDictionary<TKey,TValue>

API reference for LazyConcurrentDictionary<TKey,TValue> in Vendr, the eCommerce solution for Umbraco v8+

LazyConcurrentDictionary<TKey,TValue>

public class LazyConcurrentDictionary<TKey, TValue> : ConcurrentDictionary<TKey, Lazy<TValue>>
    where TValue : class

Inheritance

Namespace

Constructors

LazyConcurrentDictionary<TKey,TValue>

The default constructor.

public LazyConcurrentDictionary()

LazyConcurrentDictionary<TKey,TValue> (1 of 6)

public LazyConcurrentDictionary(IEnumerable<KeyValuePair<TKey, Lazy<TValue>>> collection)

LazyConcurrentDictionary<TKey,TValue> (2 of 6)

public LazyConcurrentDictionary(IEqualityComparer<TKey> comparer)

LazyConcurrentDictionary<TKey,TValue> (3 of 6)

public LazyConcurrentDictionary(int concurrencyLevel, int capacity)

LazyConcurrentDictionary<TKey,TValue> (4 of 6)

public LazyConcurrentDictionary(IEnumerable<KeyValuePair<TKey, Lazy<TValue>>> collection, 
    IEqualityComparer<TKey> comparer)

LazyConcurrentDictionary<TKey,TValue> (5 of 6)

public LazyConcurrentDictionary(int concurrencyLevel, 
    IEnumerable<KeyValuePair<TKey, Lazy<TValue>>> collection, IEqualityComparer<TKey> comparer)

LazyConcurrentDictionary<TKey,TValue> (6 of 6)

public LazyConcurrentDictionary(int concurrencyLevel, int capacity, 
    IEqualityComparer<TKey> comparer)

Methods

GetOrAddIfNotNull

public override Lazy<TValue> GetOrAddIfNotNull(TKey key, Func<TKey, Lazy<TValue>> valueFactory)

Edit this page on GitHub

Site + logo design © 2025 Outfield Digital Ltd. Content contributions licensed under MIT.
Vendr® is a Registered Trademark of Outfield Digital Ltd.