Click or drag to resize

RankedDictionaryTKey, TValueIDictionaryAdd Method

Adds the supplied key and value to the dictionary.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
void IDictionary.Add(
	Object key,
	Object value
)

Parameters

key
Type: SystemObject
The key of the element to add.
value
Type: SystemObject
The value of the element to add.

Implements

IDictionaryAdd(Object, Object)
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen key is null.
ArgumentExceptionWhen an element with the same key already exists in the Dictionary.
ArgumentExceptionWhen key is not a TKey.
ArgumentExceptionWhen value is not a TValue.
See Also