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

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