Click or drag to resize

RankedMapTKey, TValueICollectionKeyValuePairTKey, TValueAdd Method

Adds an element with the supplied key/value pair.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
void ICollection<KeyValuePair<TKey, TValue>>.Add(
	KeyValuePair<TKey, TValue> keyValuePair
)

Parameters

keyValuePair
Type: System.Collections.GenericKeyValuePairTKey, TValue
Contains the key and value of the element to add.

Implements

ICollectionTAdd(T)
Exceptions
ExceptionCondition
ArgumentExceptionWhen an element containing key has already been added.
See Also