Click or drag to resize

OrderedDictionary<TKey, TValue> .Add Method

Adds the specified key and value to the dictionary as an O(1) operation.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.246-beta+42d747c9715f1fa10d4cfc2f9ab3daabb0a187d9
Syntax
public void Add(
	TKey key,
	TValue value
)
View Source

Parameters

key  TKey
The key of the element to add.
value  TValue
The value of the element to add. The value can be null for reference types.

Implements

IDictionary<TKey, TValue>.Add(TKey, TValue)
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
ArgumentExceptionAn element with the same key already exists in the OrderedDictionary<TKey, TValue>.
See Also