Add
Adds a new key-value pair.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
Add(T, T)
Adds a new key-value pair.
public void Add(TKey key, TValue item)
Parameters
Remarks
If the key is already present, this method throws without modifying the hash map.
Add(T, T, int)
Adds a new key-value pair.
public void Add(TKey key, TValue item, int threadIndexOverride)
Parameters
The thread index which must be set by a field from a job struct with the NativeSetThreadIndexAttribute attribute.
Remarks
If the key is already present, this method throws without modifying the hash map.