DictionaryExtensionsGetActualValueOrDefault Method

Overload List

GetActualValueOrDefaultTKey, TValue, TActualValue(IDictionaryTKey, TValue, TKey, TActualValue) Tries to get the typed value from a dictionary for the given key. In this method defaultValue can have a different type than TValue.
See the Examples section of the GetValueOrDefaultTActualValue(IDictionaryString, Object, String, TActualValue) method for some examples.
GetActualValueOrDefaultTKey, TValue, TActualValue(IDictionaryTKey, TValue, TKey, FuncTActualValue) Tries to get the typed value from a dictionary for the given key. In this method defaultValueFactory can return an instance of a different type than TValue.
See the Examples section of the GetValueOrDefaultTActualValue(IDictionaryString, Object, String, TActualValue) method for some examples.
GetActualValueOrDefaultTKey, TValue, TActualValue(IEnumerableKeyValuePairTKey, TValue, TKey, TActualValue) Tries to get the typed value from a dictionary for the given key. Unlike in the GetValueOrDefaultTKey, TValue(IEnumerableKeyValuePairTKey, TValue, TKey, TValue) overload, here defaultValue can have a different type than TValue.
See the Examples section of the GetValueOrDefaultTActualValue(IDictionaryString, Object, String, TActualValue) method for some examples.
GetActualValueOrDefaultTKey, TValue, TActualValue(IEnumerableKeyValuePairTKey, TValue, TKey, FuncTActualValue) Tries to get the typed value from a dictionary for the given key. Unlike in the GetValueOrDefaultTKey, TValue(IEnumerableKeyValuePairTKey, TValue, TKey, FuncTValue) overload, here defaultValueFactory can return an instance of a different type than TValue.
See the Examples section of the GetValueOrDefaultTActualValue(IDictionaryString, Object, String, TActualValue) method for some examples.

See Also