TryAdd(T)
Attempts to add a new item. Only succeeds if the item was not present.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
public bool TryAdd(T item)
Parameters
Returns
Type | Description |
|---|---|
| bool | True if the value was not already present (thus was successfully added). |