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