Method GetLockedItemCached
GetLockedItemCached(TIndex, Func<TValue?>)
Same as GetLockedItemCached(TIndex, Func<TValue?>) but caches last accessed index value, so repeated calls with the same index will work faster.
public IndexedValues<TIndex, TValue>.ILockedItem GetLockedItemCached(TIndex index, Func<TValue?> getDefault)
Parameters
indexTIndexgetDefaultFunc<TValue>
Returns
- IndexedValues<TIndex, TValue>.ILockedItem