AdvisableDictionary<TKey, TValue>.Add Method |
Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.15.0 (6.5.15.0)
public void Add( TKey key, TValue value )
Parameters
- key
- Type: TKey
The object to use as the key of the element to add. - value
- Type: TValue
The object to use as the value of the element to add.
Implements
IDictionary<TKey, TValue>.Add(TKey, TValue)Exception | Condition |
---|---|
ArgumentNullException | key is null. |
ArgumentException | An element with the same key already exists in the IDictionary<TKey, TValue>. |
NotSupportedException | The IDictionary<TKey, TValue> is read-only. |