Click or drag to resize

Utils_OtherGetOrCreateValue Method

Overload List
  NameDescription
Public methodStatic memberGetOrCreateValueTKey, TValue(DictionaryTKey, TValue, TKey)
Tries to find the value associated with the given key.

If not found, creates a new instance of TValue and add it in the dictionary for the specified key.

Public methodStatic memberGetOrCreateValueTKey, TValue(DictionaryTKey, TValue, TKey, FuncTValue)
Tries to find the value associated with the given key.

If not found, uses [valueCreatorIfNotExists] to add the value in the dictionary for the specified key.

Public methodStatic memberGetOrCreateValueTKey, TValue(DictionaryTKey, TValue, TKey, TValue)
Tries to find the value associated with the given key.

If not found, adds [valueIfNotExists] in the dictionary for the specified key.

Top
See Also