Class StackExtensions
Provides extension methods for Stack<T>s.
Namespace: NanoByte.Common.Collections
Assembly: NanoByte.Common.dll
Syntax
public static class StackExtensions : Object
Methods
PopEach<T>(Stack<T>, Action<T>)
Declaration
public static void PopEach<T>(this Stack<T> stack, Action<T> action)
Parameters
Type | Name | Description |
---|---|---|
Stack<T> | stack | The stack to pop elements from. |
Action<T> | action | An action to be invoked for each element on the |
Type Parameters
Name | Description |
---|---|
T |