Click or drag to resize

ImmutableDictionaryTKey, TValueAdd Method

Adds an element with the provided key and value to the IDictionaryTKey, TValue.

Namespace: GSF.Immutable
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.260-beta+cb466f216da12fb731bf5493e0294c87f9de1794
Syntax
public void Add(
	TKey key,
	TValue value
)
View Source

Parameters

key  TKey
The object to use as the key of the element to add.
value  TValue
The object to use as the value of the element to add.

Implements

IDictionaryTKey, TValueAdd(TKey, TValue)
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
ArgumentExceptionAn element with the same key already exists in the IDictionaryTKey, TValue.
NotSupportedExceptionThe IDictionaryTKey, TValue is read-only.
See Also