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