KGy SOFT

CacheTKey, TValueValues Property

KGy SOFT Core Libraries Help
Gets the values stored in the cache in evaluation order.

Namespace:  KGySoft.Collections
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0
Syntax

public ICollection<TValue> Values { get; }

Property Value

Type: ICollectionTValue

Implements

IDictionaryTKey, TValueValues
Remarks

The order of the values in the ICollectionT represents the evaluation order. When the CacheTKey, TValue is full, the element with the value key will be dropped.

The returned ICollectionT is not a static copy; instead, the ICollectionT refers back to the values in the original CacheTKey, TValue. Therefore, changes to the CacheTKey, TValue continue to be reflected in the ICollectionT.

Retrieving the value of this property is an O(1) operation.

Note Note
The enumerator of the returned collection does not support the IEnumerator.Reset method.
See Also

Reference