PersistentDictionaryTKey, TValueAdd Method |
Name | Description | |
---|---|---|
Add(TKey, TValue) |
Adds a specified key/value pair to the dictionary. If a value with the specified
key already exists, it is replaced. This method does not modify the dictionary on
which it is called but instead returns a new dictionary containing the added element.
| |
Add(TKey, TValue, PersistentDictionaryAddResult) |
Adds a specified key/value pair to the dictionary, and returns a value indicating
whether the key was newly added to the dictionary or it already existed and the value
was replaced. This method does not modify the dictionary on
which it is called but instead returns a new dictionary containing the added element.
|