dictionary class : Keys() method

Description

Gets a list of the keys in the dictionary.

Syntax

dictionaryInstance.Keys()

Arguments

None

Return value

ClassDescription
list{string}A list of the keys in the dictionary.

Sample code

//anyDictionary is a instance of dictionary{string} type.

list{string} keyList = anyDictionary.Keys();

Notes

It's a wrapper of the System.Collections.Generic.Dictionary<TKey, TValue>.Keys.

Links for reference

Copyright © Rice All rights reserved.