Method Add
- Namespace
- GuildWars2.Collections
- Assembly
- GuildWars2.dll
Add(TKey, TValue)
Creates a new ImmutableValueDictionary<TKey, TValue> with the specified key and value added.
public ImmutableValueDictionary<TKey, TValue> Add(TKey key, TValue value)
Parameters
keyTKeyThe key to add.
valueTValueThe value to associate with the key.
Returns
- ImmutableValueDictionary<TKey, TValue>
A new dictionary with the key-value pair added.
Exceptions
- ArgumentException
The key already exists in the dictionary.