Skip to content

format

typescript
Dictionary.Set(key, value)

class: Dictionary

description

Set the value for the specified key.

parameter

param_nametypedescription
keyK|nullThe key name.
valueVThe value.

reture

typedescription
void

code example

typescript
let dictionaryObj = new Dictionary<Obj, Number>(Obj);
let obj1 = new Obj(1);
dictionaryObj.Add(obj1, 1);
dictionaryObj.Set(obj1, 2);