ConcurrentDictionary<TKey,TValue>.IEnumerable.GetEnumerator ConcurrentDictionary<TKey,TValue>.IEnumerable.GetEnumerator ConcurrentDictionary<TKey,TValue>.IEnumerable.GetEnumerator Method

Definition

Returns an enumerator that iterates through the ConcurrentDictionary<TKey,TValue>.

 virtual System::Collections::IEnumerator ^ System.Collections.IEnumerable.GetEnumerator() = System::Collections::IEnumerable::GetEnumerator;
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator

Returns

Implements

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.

Applies to

See also