AdvisableDictionary<TKey, TValue>.Item Property |
Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.21.0 (6.5.21.0)
public TValue this[ TKey key ] { get; set; }
Parameters
- key
- Type: TKey
The key of the element to get or set.
Return Value
Type: TValueThe element with the specified key.
Implements
IDictionary<TKey, TValue>.Item[TKey]Exception | Condition |
---|---|
ArgumentNullException | key is null. |
KeyNotFoundException | The property is retrieved and key is not found. |
NotSupportedException | The property is set and the IDictionary<TKey, TValue> is read-only. |