Method AddRange
- Namespace
- GuildWars2.Collections
- Assembly
- GuildWars2.dll
AddRange(IEnumerable<KeyValuePair<TKey, TValue>>)
Adds the specified key/value pairs to the dictionary.
IImmutableValueDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
Parameters
pairsIEnumerable<KeyValuePair<TKey, TValue>>The key/value pairs to add.
Returns
- IImmutableValueDictionary<TKey, TValue>
A new immutable dictionary that contains the additional key/value pairs.
Exceptions
- ArgumentException
One of the given keys already exists in the dictionary but has a different value.