Table of Contents

Method GetLockedItemCached

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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

index TIndex
getDefault Func<TValue>

Returns

IndexedValues<TIndex, TValue>.ILockedItem