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
keyTKeyThe key of the value to get.
defaultValueTValueDefault value.
Returns
- TValue
Remarks
This function uses value of the LastItem property to speed up its work.