ThreadSafeDictionaryTKey, TValueGetOrAdd Method

Overload List

GetOrAdd(TKey, TValue) Adds a key/value pair to the ThreadSafeDictionaryTKey, TValue if the key does not already exist, and returns either the added or the existing value.
GetOrAdd(TKey, FuncTKey, TValue) Adds a key/value pair to the ThreadSafeDictionaryTKey, TValue by using the specified addValueFactory if the key does not already exist, and returns either the added or the existing value.
GetOrAddTArg(TKey, FuncTKey, TArg, TValue, TArg) Adds a key/value pair to the ThreadSafeDictionaryTKey, TValue by using the specified addValueFactory if the key does not already exist, and returns either the added or the existing value.

See Also