Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  dictionary  >  dictionary()
dictionary class : dictionary() fitter

Description

Get a new instance of dictionary class with initial value.

Syntax

new dictionary()

Arguments

None.

Return value

ClassDescription
dictionaryA new instance of dictionary class with initial value.

Sample code

dictionary newDictionary = new dictionary();

Notes

The initial value is an empty dictionary.

You can limit the class of elements by using "{}" in the fitter.

For example


dictionary{string} stringDictionary = new dictionary{string}();


The above example limits the elements of the dictionary to the string class.

If do not use the "{}", will be able to have an instance of any class as a element.

Links for reference

None.

Copyright © Rice All rights reserved.