LockingDictionaryTKey, TValueValues Property

Gets an ICollectionT containing the values of the LockingDictionaryTKey, 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 collection represents a moment-in-time snapshot of the values of the LockingDictionaryTKey, TValue. It does not reflect any updates to the dictionary after Values were obtained. The collection is safe to use concurrently with reads from and writes to the dictionary.

This property has an O(n) cost where n is the number of elements in the dictionary.

  Note

The enumerator of the returned collection supports the IEnumerator.Reset method.

See Also