Provides extension methods for Stack<T>s.
More...
|
static void | PopEach< T > (this Stack< T > stack, Action< T > action) |
| Stack<T>.Pops each element of a Stack<T> and performs an action with the resulting element. More...
|
|
Provides extension methods for Stack<T>s.
◆ PopEach< T >()
static void NanoByte.Common.Collections.StackExtensions.PopEach< T > |
( |
this Stack< T > |
stack, |
|
|
Action< T > |
action |
|
) |
| |
|
inlinestatic |
Stack<T>.Pops each element of a Stack<T> and performs an action with the resulting element.
- Parameters
-
stack | The stack to pop elements from. |
action | An action to be invoked for each element on the stack . |
The documentation for this class was generated from the following file:
- Common/Collections/StackExtensions.cs