Method GetValueOrDefaultCached
GetValueOrDefaultCached(TKey, TValue)
Gets the value associated with the specified key.
Returns defaultValue
if the key is not found.
public TValue GetValueOrDefaultCached(TKey key, TValue defaultValue = default)
Parameters
key
TKeyThe key of the value to get.
defaultValue
TValueDefault value.
Returns
- TValue
Remarks
This function uses value of the LastItem property to speed up its work.