Click or drag to resize

OrderedDictionaryTKey, TValueItem(TKey) Property

Gets or sets the value associated with the specified key as an O(1) operation.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.244-beta+c33f622c070b2c1078a06bcb41bdeb4c19d19a0b
Syntax
public TValue this[
	TKey key
] { get; set; }
View Source

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, a get operation throws a KeyNotFoundException, and a set operation creates a new element with the specified key.

Implements

IDictionaryTKey, TValueItemTKey
IReadOnlyDictionaryTKey, TValueItemTKey
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
KeyNotFoundExceptionThe property is retrieved and key does not exist in the collection.
See Also