Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  dictionary
dictionary class

Description

Represents a collection of keys and values.

Notes

This class is a standard built-in class in the Rice language.

Instance that is created by declaration have been already initialized.

key is the string type.

You can limit the type of the value by using the "{}" in the declaration.

If do not use the "{}" in the declaration, will be able to have an instance of any type as a value.

fitter

SignatureDescription
dictionary()

Get a new instance of dictionary class with initial value.

getter

SignatureDescription
Count

Gets the number of key/value pairs that contained in the dictionary.

Fitted

Gets the value that indicates whether this instance was already initialized.

TypeName

Gets the type name.

setter

This class does not have a setter.

method

SignatureDescription
Add(string,class)

Adds the specified key and value to the dictionary.

Clear()

Removes all keys and values from the dictionary.

ContainsKey(string)

Gets a value that indicates whether the specified key is contained in the dictionary.

Get(string)

Gets the value that associated with the specified key.

Keys()

Gets a list of the keys in the dictionary.

Remove(string)

Removes the value with the specified key.

Set(string,class)

Sets the value that associated with the specified key.

Values()

Gets a list of the values in the dictionary.

Copyright © Rice All rights reserved.