Utils_OtherGetOrCreateValueTKey, TValue Method (DictionaryTKey, TValue, TKey) |
If not found, creates a new instance of TValue and add it in the dictionary for the specified key.
Namespace: MicaSystems.Utils
public static TValue GetOrCreateValue<TKey, TValue>( this Dictionary<TKey, TValue> dictionnary, TKey key ) where TValue : new()