Get<>(dict, key, defaultVal) Get<>(dict, key, defaultVal) Get<>(dict, key1, key2, defaultVal) IndexOfSubarray<>(sourceArray, findWhat, startIndex, sourceLength, comparer) Insert<>(array, startIndex, values) Insert<>(array, startIndex, value) Remove<>(array, startIndex, length) SubarrayEquals<>(sourceArray, sourceStartIndex, otherArray, otherStartIndex, length, comparer)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: TValue Get<TKey, TValue>(this IDictionary<TKey, TValue>, TKey, TValue)Declarationpublic 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. |
|