Returns an enumerator that iterates through the System.Collections.Concurrent.ConcurrentBag`1.
![]()
An enumerator for the contents of the System.Collections.Concurrent.ConcurrentBag`1.
The enumeration represents a moment-in-time snapshot of the contents of the bag. It does not reflect any updates to the collection after ConcurrentBag`1.GetEnumerator was called. The enumerator is safe to use concurrently with reads from and writes to the bag.