Table of Contents

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

key TKey

The key to add.

value TValue

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