Class ScopedStack<T>
- Namespace
- Core.Collections.Scoped
- Assembly
- Core.dll
public sealed class ScopedStack<T> : Stack<T>, IPoolable
Type Parameters
T
- Inheritance
-
objectStack<T>ScopedStack<T>
- Implements
- Extension Methods
Methods
Dispose()
public void Dispose()
Get()
public static ScopedStack<T> Get()
Returns
- ScopedStack<T>
Get(Queue<T>)
public static ScopedStack<T> Get(Queue<T> initialElements)
Parameters
initialElementsQueue<T>
Returns
- ScopedStack<T>
Get(HashSet<T>)
public static ScopedStack<T> Get(HashSet<T> initialElements)
Parameters
initialElementsHashSet<T>
Returns
- ScopedStack<T>
Get(IEnumerable<T>)
public static ScopedStack<T> Get(IEnumerable<T> initialElements)
Parameters
initialElementsIEnumerable<T>
Returns
- ScopedStack<T>
Get(List<T>)
public static ScopedStack<T> Get(List<T> initialElements)
Parameters
initialElementsList<T>
Returns
- ScopedStack<T>
Get(Stack<T>)
public static ScopedStack<T> Get(Stack<T> initialElements)
Parameters
initialElementsStack<T>
Returns
- ScopedStack<T>
Get(T[])
public static ScopedStack<T> Get(T[] initialElements)
Parameters
initialElementsT[]
Returns
- ScopedStack<T>
Return(ScopedStack<T>)
public static void Return(ScopedStack<T> instance)
Parameters
instanceScopedStack<T>