Summary
If the dictionary contains a value for the given key, that value is returned.
Otherwise the default value is returned.
- Assembly
- Weaver
.dll - Namespace
- Weaver
- Containing Type
- WeaverUtilities
Syntax
public static TValue Get<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue defaultValue = default(TValue))
Type Parameters
| Name | Description |
|---|---|
| TKey | |
| TValue |
Parameters
| Name | Type | Description |
|---|---|---|
| dictionary | Dictionary |
|
| key | TKey | |
| defaultValue | TValue |
Return Value
| Type | Description |
|---|---|
| TValue |