Declaration
public static TValue Get<TKey1, TKey2, TValue>(
this IDictionary<TKey1, Dictionary<TKey2, TValue>> dict,
TKey1 key1,
TKey2 key2,
TValue defaultVal
)
Summary
Gets a value from a two-level dictionary by key. If the keys don’t exist in the dictionary, the default value
is returned instead.
Generic type parameters
TKey1 | This type parameter is not documented. |
TKey2 | This type parameter is not documented. |
TValue | This type parameter is not documented. |
Parameters
this IDictionary<TKey1, Dictionary<TKey2, TValue>> | dict |
Dictionary to operate on. |
TKey1 | key1 |
Key to look up in the first level. |
TKey2 | key2 |
Key to look up in the second level. |
TValue | defaultVal |
Value to return if key1 or key2 is not contained in the relevant dictionary. |