TryAdd<TKey, TArg, TValue>(IDictionary<TKey, TValue>, TKey, TArg, Func<TKey, TArg, TValue>) Method
Namespace
Statiq.Common
Containing Type
IDictionaryExtensions

Syntax

public static bool TryAdd<TKey, TArg, TValue>(this IDictionary<TKey, TValue> dictionary, TKey key, TArg arg, Func<TKey, TArg, TValue> getValue)

Type Parameters

Name Description
TKey
TArg
TValue

Parameters

Name Type Description
dictionary IDictionary<TKey, TValue>
key TKey
arg TArg
getValue Func<TKey, TArg, TValue>

Return Value

Type Description
bool