Click or drag to resize

ImmutableDictionary<TKey, TValue> .Item Property

Gets or sets the element with the specified key.

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

Parameters

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

Return Value

TValue
The element with the specified key.

Implements

IDictionary<TKey, TValue>.Item[TKey]
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
KeyNotFoundExceptionThe property is retrieved and key is not found.
NotSupportedExceptionThe property is set and the IDictionary<TKey, TValue> is read-only.
See Also