docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DictionaryPool<TKey, TValue>

    Dictionary Pool.

    Inheritance
    object
    DictionaryPool<TKey, TValue>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    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<Dictionary<TKey, TValue>>.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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)