AdvisableDictionary<TKey, TValue>.Remove Method |
Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.19.0 (6.5.19.0)
public bool Remove( TKey key )
Parameters
- key
- Type: TKey
The key of the element to remove.
Return Value
Type: Booleantrue if the element is successfully removed; otherwise, false. This method also returns false if key was not found in the original IDictionary<TKey, TValue>.
Implements
IDictionary<TKey, TValue>.Remove(TKey)Exception | Condition |
---|---|
ArgumentNullException | key is null. |
NotSupportedException | The IDictionary<TKey, TValue> is read-only. |