Click or drag to resize

AutoWeakIndexerTKey, TValueItem Property

Gets the value associated with the specified key.

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

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.
See Also