Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Add(TKey, TValue)

Adds a new key-value pair.
Read time 1 minuteLast updated 10 days ago

Definition

Add(T, T)

public void Add(TKey key, TValue item)

Parameters

key

T
The key to add.

item

T
The value to add.

Remarks

If the key is already present, this method throws without modifying the hash map.