Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ConcurrentStack<T>::IEnumerable::GetEnumerator Method ()

.NET Framework (current version)
 

Returns an enumerator that iterates through a collection.

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

private:
virtual IEnumerator^ GetEnumerator() sealed = IEnumerable::GetEnumerator

Return Value

Type: System.Collections::IEnumerator^

An IEnumerator that can be used to iterate through the collection.

The enumeration represents a moment-in-time snapshot of the contents of the stack. It does not reflect any updates to the collection after GetEnumerator was called. The enumerator is safe to use concurrently with reads from and writes to the stack.

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:
© 2017 Microsoft