docs.unity.cn
    Show / Hide Table of Contents

    Class DictionaryPool<TKey, TValue>

    Dictionary Pool.

    Inheritance
    Object
    DictionaryPool<TKey, TValue>
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023