ThreadSafeDictionaryTKey, TValueValues Property

Gets a collection reflecting the values stored in this ThreadSafeDictionaryTKey, TValue.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public ICollection<TValue> Values { get; }

Property Value

ICollectionTValue

Implements

IDictionaryTKey, TValueValues

Remarks

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

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

  Note

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

See Also