Class DictionaryExtensions
Inherited Members
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 |