SharedDictionary<TKey,TValue> class
A thread-safe dictionary that can be shared in-memory by actors.
public class SharedDictionary<TKey, TValue>
| parameter |
description |
| TKey |
The type of the key. |
| TValue |
The type of the value. |
Public Members
| name |
description |
| virtual Count { get; } |
Gets the number of elements in the dictionary. |
| virtual Item { get; set; } |
Gets or sets the value associated with the specified key. |
| virtual TryAdd(…) |
Adds a new key to the dictionary, if it doesn’t already exist in the dictionary. |
| virtual TryGetValue(…) |
Attempts to get the value associated with the specified key. |
| virtual TryRemove(…) |
Removes the specified key from the dictionary. |
| virtual TryUpdate(…) |
Updates the value for an existing key in the dictionary, if that key has a specific value. |
See Also