The following tables list the members exposed by IConcurrentDictionary<TKey,TValue>.
Name | Description | |
---|---|---|
AddOrUpdate | Overloaded. Adds a key/value pair to the IDictionary if the key does not already exist, or updates a key/value pair if the key already exists. | |
GetOrAdd | Adds a key/value pair to the IDictionary if the key does not already exist. | |
TryAdd | Adds an element with the provided key and value to the IDictionary by calling the provided factory method to construct the value if the key is not already present in the collection. | |
TryRemove | Overloaded. Removes the element with the specified key from the IDictionary if the fnCondition predicate is null or returns true. | |
TryUpdate | Modify the value associated with the result of the provided update method as an atomic operation, Allows for reading/writing a single record within the tree lock. Be cautious about the behavior and performance of the code provided as it can cause a dead-lock to occur. If the method returns an instance who .Equals the original, no update is applied. |