ThreadSafeDictionaryTKey, TValueGetEnumerator Method

Returns an enumerator that iterates through the keys and values of this ThreadSafeDictionaryTKey, TValue.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()

Return Value

IEnumeratorKeyValuePairTKey, TValue
An IEnumeratorT that can be used to iterate through the ThreadSafeDictionaryTKey, TValue.

Implements

IEnumerableTGetEnumerator

Remarks

The enumerator returned from the dictionary is safe to use concurrently with reads and writes to the dictionary; however, it does not represent a moment-in-time snapshot of the dictionary. The contents exposed through the enumerator may contain modifications made to the dictionary after GetEnumerator was called.

See Also