Method GetOrDefault
GetOrDefault<TKey, TValue>(IDictionary<TKey, TValue>, TKey)
Declaration
public static TValue GetOrDefault<TKey, TValue>(this IDictionary<TKey, TValue> dictionary, TKey key)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<TKey, TValue> | dictionary | |
TKey | key |
Returns
Type | Description |
---|---|
TValue |
Type Parameters
Name | Description |
---|---|
TKey | |
TValue |