Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: TValue Get<TKey1, TKey2, TValue>(this IDictionary<TKey1, Dictionary<TKey2, TValue>>, TKey1, TKey2, TValue)

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

TKey1This type parameter is not documented.
TKey2This type parameter is not documented.
TValueThis type parameter is not documented.

Parameters

this IDictionary<TKey1, Dictionary<TKey2, TValue>>dict Dictionary to operate on.
TKey1key1 Key to look up in the first level.
TKey2key2 Key to look up in the second level.
TValuedefaultVal Value to return if key1 or key2 is not contained in the relevant dictionary.