Method Add
Add(K, V)
Add a new (key, value) pair (a mapping) to the dictionary.
Declaration
void Add(K key, V val)
Parameters
Type | Name | Description |
---|---|---|
K | key | Key to add |
V | val | Value to add |
Exceptions
Type | Condition |
---|---|
DuplicateNotAllowedException | if there already is an entry with the same key. |