TryAdd(T)
Adds a new value. If the item is already present, this method returns false without replacing said item.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
public bool TryAdd(T item)
Parameters
Returns
Type | Description |
|---|---|
| bool | True if the value is not already present. |