Method Add
Add(TKey, TValue)
Adds the specified key and value to the dictionary.
Declaration
public void Add(TKey key, TValue value)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | key | |
| TValue | value |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The dictionary already contains the key with a value that is still available. |
| ObjectDisposedException | The dictionary has been disposed. |