- Namespace
-
GitVersion
.Extensions - Containing Type
- DictionaryExtensions
Syntax
public static TValue GetOrAdd<TKey, TValue>(this IDictionary<TKey, TValue> dict, TKey key, Func<TValue> getValue)
Type Parameters
| Name | Description |
|---|---|
| TKey | |
| TValue |
Parameters
| Name | Type | Description |
|---|---|---|
| dict |
IDictionary |
|
| key | TKey | |
| getValue | Func |
Return Value
| Type | Description |
|---|---|
| TValue |