NanoByte.Common 2.10.6
NanoByte.Common.Collections.StackExtensions Class Reference

Provides extension methods for Stack<T>s. More...

Static Public Member Functions

static void PopEach< T > (this Stack< T > stack, [InstantHandle] Action< T > action)
 Stack<T>.Pops each element of a Stack<T> and performs an action with the resulting element. More...
 

Detailed Description

Provides extension methods for Stack<T>s.

Member Function Documentation

◆ PopEach< T >()

static void NanoByte.Common.Collections.StackExtensions.PopEach< T > ( this Stack< T >  stack,
[InstantHandle] Action< T >  action 
)
inlinestatic

Stack<T>.Pops each element of a Stack<T> and performs an action with the resulting element.

Parameters
stackThe stack to pop elements from.
actionAn action to be invoked for each element on the stack .

The documentation for this class was generated from the following file: