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

Syntax

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

Type Parameters

Name Description
TKey
TValue

Parameters

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

Return Value

Type Description
bool