Skip to content

format

typescript
Dictionary.Add(key, value)

class: Dictionary

description

Add a value to the specified key name.

parameter

param_nametypedescription
keyK|nullThe key name.
valueVThe value.

reture

typedescription
void

code example

typescript
let dictionary = new Dictionary<Number, Number>(Number);
dictionary.Add(1, 1);