Method GetOrAdd
GetOrAdd(TKey, Func<TKey, TResource>)
Declaration
public TResource GetOrAdd(TKey key, Func<TKey, TResource> resourceFactory)
Parameters
Type | Name | Description |
---|---|---|
TKey | key | |
Func<TKey, TResource> | resourceFactory |
Returns
Type | Description |
---|---|
TResource |