ThreadSafeDictionaryTKey, TValueAddOrUpdate Method

Overload List

AddOrUpdate(TKey, TValue, TValue) Adds or updates a key/value pair in the ThreadSafeDictionaryTKey, TValue based on whether the specified key already exists.
AddOrUpdate(TKey, TValue, FuncTKey, TValue, TValue) Adds a key/value pair to the ThreadSafeDictionaryTKey, TValue if the key does not already exist, or updates a key/value pair in the ThreadSafeDictionaryTKey, TValue by using the specified updateValueFactory if the key already exists.
AddOrUpdate(TKey, FuncTKey, TValue, FuncTKey, TValue, TValue) Uses the specified delegates to add a key/value pair to the ThreadSafeDictionaryTKey, TValue if the key does not already exist, or to update a key/value pair in the ThreadSafeDictionaryTKey, TValue if the key already exists.
AddOrUpdateTArg(TKey, FuncTKey, TArg, TValue, FuncTKey, TValue, TArg, TValue, TArg) Uses the specified delegates to add a key/value pair to the ThreadSafeDictionaryTKey, TValue if the key does not already exist, or to update a key/value pair in the ThreadSafeDictionaryTKey, TValue if the key already exists.

See Also