dictionary class : Get(string) method
Description
Gets the value that associated with the specified key.
Syntax
dictionaryInstance.Get(string key)
Arguments
Class | Name | Description |
string | key | Key to be searched. |
Return value
Class | Description |
someClass | The value that associated with the specified key. |
Sample code
//anyDictionary is a instance of dictionary{string} type.
string valueStr = anyDictionary.Get("ww");
Notes
It's a wrapper of the System.Collections.Generic.Dictionary<TKey, TValue>.Item(TKey).