dictionary class : Add(string,class) method
Description
Adds the specified key and value to the dictionary.
Syntax
dictionaryInstance.Add(string key, someClass value)
Arguments
Class | Name | Description |
string | key | Key to be added. |
someClass | value | Value to be added. |
Return value
None
Sample code
//anyDictionary is a instance of dictionary{string} type.
anyDictionary.Add("newKey","ww");
Notes
It's a wrapper of the System.Collections.Generic.Dictionary<TKey, TValue>.Add(TKey,TValue).
It throws UnknownException(ArgumentException) If an element with the same key already exists in the dictionary.