Table of Contents

Method GetValueOrDefaultCached

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

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 TKey

The key of the value to get.

defaultValue TValue

Default value.

Returns

TValue

Remarks

This function uses value of the LastItem property to speed up its work.