Click or drag to resize
DictionaryTKey, TValueAdd Method
Adds the specified key and value to the dictionary.

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public void Add(
	TKey key,
	TValue value
)

Parameters

key
Type: TKey
The key of the element to add.
value
Type: TValue
The value of the element to add. The value can be null for reference types.
Exceptions
See Also