Method GetValue
GetValue(TIndex)
Gets value for the specified index.
public TValue? GetValue(TIndex index)
Parameters
index
TIndexIndex 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
TIndexIndex 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