Method Add
- Namespace
- GuildWars2.Collections
- Assembly
- GuildWars2.dll
Add(TKey, TValue)
Adds an element with the specified key and value to the dictionary.
IImmutableValueDictionary<TKey, TValue> Add(TKey key, TValue value)
Parameters
keyTKeyThe key of the element to add.
valueTValueThe value of the element to add.
Returns
- IImmutableValueDictionary<TKey, TValue>
A new immutable dictionary that contains the additional key/value pair.
Exceptions
- ArgumentException
The given key already exists in the dictionary but has a different value.