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

Description

Gets an instance initialized by the initialization string.

Syntax

new dictionary(string initStr)

Arguments

ClassNameDescription
stringinitStrInitialization string.

Return value

ClassDescription
dictionaryInitialized dictionary.

Sample code

1:

/**Sample**concat**-----------------------

2:

{"First":123, "Second":123L, "Third":123.4, "Fourth":true, "Fifth":"string",}

3:

-----------------------------------------------*/

4:

rice rr;

5:

dictionary newDictionary = new dictionary(rr.Sample);

Notes

The format of the initialization string is:

A string that starts with "{" and ends with "}".

Separate the items with commas.

An Item is key and value pair separated by colon.

The key specifies the identifier as a string literal.

Allows a comma to follow the last item.

Allows white space before and after the initialization string and item.


The int, long, real, bool, and string can be set as values. Specify in the format of each literal.

Links for reference

None.

Copyright © Rice All rights reserved.