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