- Namespace
- Statiq
.Common - Containing Type
- I
Dictionary Extensions
Syntax
public static bool TryAdd<TKey, TValue>(this IDictionary<TKey, TValue> dictionary, TKey key, Func<TKey, TValue> getValue)
Type Parameters
| Name | Description |
|---|---|
| TKey | |
| TValue |
Parameters
| Name | Type | Description |
|---|---|---|
| dictionary | IDictionary |
|
| key | TKey | |
| getValue | Func |
Return Value
| Type | Description |
|---|---|
| bool |