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 specified key already exists in the dictionary. |