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
keyTKeyThe key of the element to add.
valueTValueThe value of the element to add. The value can be null for reference types.