Method Add
Add(TKey, TValue)
Adds the specified key and value pair to the dictionary or updates value if key is already added.
public void Add(TKey key, TValue value)
Parameters
key
TKeyThe key of the element to add.
value
TValueThe value of the element to add. The value can be null for reference types.