Class DictionaryPool<TKey, TValue>
Dictionary Pool.
Namespace: UnityEngine.Rendering
Syntax
public static class DictionaryPool<TKey, TValue>
Type Parameters
Name | Description |
---|---|
TKey | Key type. |
TValue | Value type. |
Methods
Get()
Get a new Dictionary
Declaration
public static Dictionary<TKey, TValue> Get()
Returns
Type | Description |
---|---|
Dictionary<TKey, TValue> | A new Dictionary |
Get(out Dictionary<TKey, TValue>)
Get a new dictionary PooledObject.
Declaration
public static ObjectPool<Dictionary<TKey, TValue>>.PooledObject Get(out Dictionary<TKey, TValue> value)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<TKey, TValue> | value | Output typed Dictionary. |
Returns
Type | Description |
---|---|
ObjectPool.PooledObject<> | A new Dictionary PooledObject. |
Release(Dictionary<TKey, TValue>)
Release an object to the pool.
Declaration
public static void Release(Dictionary<TKey, TValue> toRelease)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<TKey, TValue> | toRelease | Dictionary to release. |