format
typescript
Dictionary.Set(key, value)class: Dictionary
description
Set the value for the specified key.
parameter
| param_name | type | description |
|---|---|---|
| key | K|null | The key name. |
| value | V | The value. |
reture
| type | description |
|---|---|
void |
code example
typescript
let dictionaryObj = new Dictionary<Obj, Number>(Obj);
let obj1 = new Obj(1);
dictionaryObj.Add(obj1, 1);
dictionaryObj.Set(obj1, 2);