Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Advisable­Dictionary(TKey, TValue) Class / Advisable­Dictionary(TKey, TValue) Properties / Advisable­Dictionary(TKey, TValue).​Item Property

AdvisableDictionary<TKey, TValue>.Item Property

Gets or sets the element with the specified key.

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.43.0 (5.0.43.0)
Syntax
C#
public TValue this[
	TKey key
] { get; set; }

Parameters

key
Type: TKey
The key of the element to get or set.

Return Value

Type: TValue
The element with the specified key.

Implements

IDictionary<TKey, TValue>.Item[TKey]
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
KeyNotFoundExceptionThe property is retrieved and key is not found.
NotSupportedExceptionThe property is set and the IDictionary<TKey, TValue> is read-only.
See Also