Home News DOC Class DL Others Cooker
Class  >  dictionary  >  Get(string)
dictionary class : Get(string) method

Description

Gets the value that associated with the specified key.

Syntax

dictionaryInstance.Get(string key)

Arguments

ClassNameDescription
stringkeyKey to be searched.

Return value

ClassDescription
someClassThe 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).

Links for reference

Copyright © Rice All rights reserved.