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)
Syntax
public TValue this[
	TKey key
] { get; set; }

Parameters

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

Return Value

Type: 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