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.

IConcurrentDictionary<TKey,TValue>

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

IConcurrentDictionary<TKey,TValue>

public interface IConcurrentDictionary<TKey, TValue> : IDictionary<TKey, TValue>
    where TValue : class

Namespace

Properties

IsEmpty

public bool IsEmpty { get; }

Methods

AddOrUpdate (1 of 2)

public TValue AddOrUpdate(TKey key, Func<TKey, TValue> addValueFactory, 
    Func<TKey, TValue, TValue> updateValueFactory)

AddOrUpdate (2 of 2)

public TValue AddOrUpdate(TKey key, TValue addValue, Func<TKey, TValue, TValue> updateValueFactory)

AddOrUpdate<TArg>

public TValue AddOrUpdate<TArg>(TKey key, Func<TKey, TArg, TValue> addValueFactory, 
    Func<TKey, TValue, TArg, TValue> updateValueFactory, TArg factoryArgument)

GetOrAdd

public TValue GetOrAdd(TKey key, Func<TKey, TValue> valueFactory)

GetOrAddIfNotNull

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

ToArray

public KeyValuePair<TKey, TValue>[] ToArray()

TryAdd

public bool TryAdd(TKey key, TValue value)

TryRemove

public bool TryRemove(TKey key, out TValue value)

TryUpdate

public bool TryUpdate(TKey key, TValue newValue, TValue comparisonValue)

Edit this page on GitHub

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