DictionaryTKey, TValueAdd Method |
Namespace: System.Collections.Generic
public void Add( TKey key, TValue value )
Exception | Condition |
---|---|
ArgumentNullException | key is null. |
ArgumentException | An element with the same key already exists in the DictionaryTKey, TValue. |