Table of Contents

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

key TKey

The key of the element to add.

value TValue

The 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.