Click or drag to resize
DictionaryExtensionsGetValueOrDefault Method
Overload List
  NameDescription
Public methodStatic memberGetValueOrDefaultTKey, TValue(IDictionaryTKey, TValue, TKey)
Gets a value from a dictionary. If they value is not there, adds the default value to the dictionary and returns that. Not thread safe because it can add items to the dictionary.
Public methodStatic memberGetValueOrDefaultTKey, TValue(IDictionaryTKey, TValue, TKey, Boolean)
Returns the value associated with key in the dictionary. If not present, adds the default value to the dictionary and returns that value.
Public methodStatic memberGetValueOrDefaultTKey, TValue(IDictionaryTKey, TValue, TKey, TValue)
Returns the value associated with key in the dictionary. If not present, adds the default value to the dictionary and returns that value.
Public methodStatic memberGetValueOrDefaultTKey, TValue(IDictionaryTKey, TValue, TKey, FuncTValue, Boolean)
Returns the value associated with key in the dictionary. If not present, adds the default value to the dictionary and returns that value.
Public methodStatic memberGetValueOrDefaultTKey, TValue(IDictionaryTKey, TValue, TKey, TValue, Boolean)
Returns the value associated with key in the dictionary. If not present, adds the default value to the dictionary and returns that value.
Top
See Also