Table of Contents

Method GetValue

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

GetValue(TIndex)

Gets value for the specified index.

public TValue? GetValue(TIndex index)

Parameters

index TIndex

Index of value.

Returns

TValue

GetValue(TIndex, Func<TValue>)

Gets value for the specified index. If value was not assigned, getDefault function is used to initialize index/value pair.

public TValue GetValue(TIndex index, Func<TValue> getDefault)

Parameters

index TIndex

Index of value.

getDefault Func<TValue>

Function which returns default value for the specified index. It is called when item with the specified index is locked for the first time.

Returns

TValue