Class DictionaryExtensions
- Namespace
- Oqtane.Extensions
- Assembly
- Oqtane.Server.dll
public static class DictionaryExtensions
- Inheritance
-
DictionaryExtensions
Methods
GetValue<TKey, TValue>(Dictionary<TKey, TValue>, TKey, TValue, bool)
public static TValue GetValue<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue defaultValue, bool nullOrEmptyValueIsValid = false)
Parameters
dictionary
Dictionary<TKey, TValue>key
TKeydefaultValue
TValuenullOrEmptyValueIsValid
bool
Returns
- TValue
Type Parameters
TKey
TValue