ConcurrentBag<T>.IEnumerable.GetEnumerator Method ()

.NET Framework (current version)
 

Returns an enumerator that iterates through the ConcurrentBag<T>.

Namespace:   System.Collections.Concurrent
Assembly:  System (in System.dll)

IEnumerator IEnumerable.GetEnumerator()

Return Value

Type: System.Collections.IEnumerator

An enumerator for the contents of the ConcurrentBag<T>.

The items enumerated represent a moment-in-time snapshot of the contents of the bag. It does not reflect any update to the collection after GetEnumerator was called.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: