Method GetOrAdd GetOrAdd(TKey, Func<TKey, TValue>) Declaration TValue GetOrAdd(TKey key, Func<TKey, TValue> valueFactory) Parameters Type Name Description TKey key Func<TKey, TValue> valueFactory Returns Type Description TValue