Click or drag to resize

ObservableIndexerTKey, TValueItem Property

Gets the value associated with the specified key.

Namespace: TomsToolbox.ObservableCollections
Assembly: TomsToolbox.ObservableCollections (in TomsToolbox.ObservableCollections.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public TValue this[
	TKey key
] { get; set; }

Parameters

key  TKey
The key of the value to get or set.

Return Value

TValue
The value associated with the specified key. If the specified key is not found, or the value at the key is null, the item generator is called to create a new element with the specified key.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe generator did not generate a valid item.
ArgumentNullExceptionkey is null.
See Also