Declaration
public static TValue Get<TKey, TValue>(
this IDictionary<TKey, TValue> dict,
TKey key,
TValue defaultVal
)
Summary
Gets a value from a dictionary by key. If the key does not exist in the dictionary, the default value is
returned instead.
Generic type parameters
TKey | This type parameter is not documented. |
TValue | This type parameter is not documented. |
Parameters
this IDictionary<TKey, TValue> | dict |
Dictionary to operate on. |
TKey | key |
Key to look up. |
TValue | defaultVal |
Value to return if key is not contained in the dictionary. |