DictionaryExtensionsGetValueOrDefault Method |
Name | Description | |
---|---|---|
GetValueOrDefaultTKey, 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.
| |
GetValueOrDefaultTKey, 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.
| |
GetValueOrDefaultTKey, 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.
| |
GetValueOrDefaultTKey, 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.
| |
GetValueOrDefaultTKey, 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.
|