Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

MultiDictionary<(Of <(<'TKey, TValue>)>)>..::..Add Method

Adds a new value to be associated with a key. If duplicate values are permitted, this method always adds a new key-value pair to the dictionary.

If duplicate values are not permitted, and key already has a value equal to value associated with it, then that value is replaced with value, and the number of values associate with key is unchanged.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public void Add(
	TKey key,
	TValue value
)
Public Sub Add ( _
	key As TKey, _
	value As TValue _
)
public:
void Add(
	TKey key, 
	TValue value
)

Parameters

key
Type: TKey
The key to associate with.
value
Type: TValue
The value to associated with key.