Gets or sets the value associated with the specified key.

Namespace: System.Extensions.Collections.ObjectModel
Assembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)

Syntax

C#
public TValue this[
	TKey key
] { get; set; }
Visual Basic
Public Default Property Item ( 
	key As TKey
) As TValue
	Get
	Set
Visual C++
public:
virtual property TValue default[TKey key] {
	TValue get (TKey key) sealed;
	void set (TKey key, TValue value) sealed;
}
F#
abstract Item : 'TValue with get, set
override Item : 'TValue with get, set

Parameters

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

Return Value

Type: TValue
The value associated with the specified key. If the specified key is not found, a get operation throws an exception, and a set operation creates a new element with the specified key.

Implements

IDictionary<(Of <(<'TKey, TValue>)>)>..::..Item[([( TKey])])

See Also