Method SetItem
- Namespace
- GuildWars2.Collections
- Assembly
- GuildWars2.dll
SetItem(TKey, TValue)
Creates a new ImmutableValueDictionary<TKey, TValue> with the specified key and value added or updated.
public ImmutableValueDictionary<TKey, TValue> SetItem(TKey key, TValue value)
Parameters
keyTKeyThe key to add or update.
valueTValueThe value to associate with the key.
Returns
- ImmutableValueDictionary<TKey, TValue>
A new dictionary with the key-value pair added or updated.