Method ICollection<KeyValuePair<TLeft, TRight>>.Add
ICollection<KeyValuePair<TLeft, TRight>>.Add(KeyValuePair<TLeft, TRight>)
Adds an association between the specified left and right values to the map.
Declaration
void ICollection<KeyValuePair<TLeft, TRight>>.Add(KeyValuePair<TLeft, TRight> item)
Parameters
| Type | Name | Description |
|---|---|---|
| KeyValuePair<TLeft, TRight> | item |
Implements
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The specified left or right value is already present in the map. |