ExpiringDictionaryTKey, TValueGetOrCreate 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.
Namespace: VirtualRadar.InterfaceAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public TValue GetOrCreate(
TKey key,
Func<TKey, TValue> create
)
Public Function GetOrCreate (
key As TKey,
create As Func(Of TKey, TValue)
) As TValue
public:
TValue GetOrCreate(
TKey key,
Func<TKey, TValue>^ create
)
member GetOrCreate :
key : 'TKey *
create : Func<'TKey, 'TValue> -> 'TValue
Parameters
- key
- Type: TKey
- create
- Type: SystemFuncTKey, TValue
Return Value
Type:
TValueSee Also