docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DictionaryExtensions

    Inheritance
    object
    DictionaryExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Multiplayer.Tools.Common
    Assembly: Unity.Multiplayer.Tools.Common.dll
    Syntax
    public static class DictionaryExtensions

    Methods

    GetValueOrCreateNew<TKey, TValue>(Dictionary<TKey, TValue>, TKey)

    Declaration
    public static TValue GetValueOrCreateNew<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key) where TValue : new()
    Parameters
    Type Name Description
    Dictionary<TKey, TValue> dictionary
    TKey key
    Returns
    Type Description
    TValue
    Type Parameters
    Name Description
    TKey
    TValue
    In This Article
    Back to top
    Copyright © 2025 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)