dictionary class : Set(string,class) method
Description
Sets the value that associated with the specified key.
Syntax
dictionaryInstance.Set(string key, someClass value)
Arguments
Class | Name | Description |
string | key | Key to be set. |
someClass | value | Value to be set. |
Return value
None
Sample code
//anyDictionary is a instance of dictionary{string} type.
anyDictionary.Set("anyKey", "ww");
Notes
It's a wrapper of the System.Collections.Generic.Dictionary<TKey, TValue>.Item(TKey).
It overwrites value If an element with the same key already exists in the dictionary.