OrderedDictionaryTKey, TValueAdd Method

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

Definition

Namespace: Gemstone.Collections
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public void Add(
	TKey key,
	TValue value
)

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

IDictionaryTKey, TValueAdd(TKey, TValue)

Exceptions

ArgumentNullExceptionkey is null.
ArgumentExceptionAn element with the same key already exists in the OrderedDictionaryTKey, TValue.

See Also