Table of Contents

Method Add

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Add(TKey, TValue)

Adds a key–value pair to the dictionary.

public void Add(TKey key, TValue value)

Parameters

key TKey

The key to add.

value TValue

The value to associate with the key.

Exceptions

ArgumentException

Thrown when the key already exists.

Add(KeyValuePair<TKey, TValue>)

Adds the specified key–value pair to the dictionary.

public void Add(KeyValuePair<TKey, TValue> item)

Parameters

item KeyValuePair<TKey, TValue>

A key–value pair to add.