DictionaryExtensions.

GetOrAdd<TKey, TValue>(Dictionary<TKey, TValue>, TKey, Func<TValue>) Method

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<TKey, TValue>
key TKey
getValue Func<TValue>

Return Value

Type Description
TValue
GitHub