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
keyTKeyThe key to add.
valueTValueThe 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
itemKeyValuePair<TKey, TValue>A key–value pair to add.