ExpiringDictionaryTKey, TValueGetAndRefreshOrCreate Method |
Returns the item for the key passed across or calls the create method to create a new item and add it to the dictionary.
If the item already exists then its timestamp is refreshed.
Namespace: VirtualRadar.InterfaceAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public TValue GetAndRefreshOrCreate(
TKey key,
Func<TKey, TValue> create
)
Public Function GetAndRefreshOrCreate (
key As TKey,
create As Func(Of TKey, TValue)
) As TValue
public:
TValue GetAndRefreshOrCreate(
TKey key,
Func<TKey, TValue>^ create
)
member GetAndRefreshOrCreate :
key : 'TKey *
create : Func<'TKey, 'TValue> -> 'TValue
Parameters
- key
- Type: TKey
- create
- Type: SystemFuncTKey, TValue
Return Value
Type:
TValueSee Also