Table of Contents

Class ScopedStack<T>

Namespace
Core.Collections.Scoped
Assembly
Core.dll
public sealed class ScopedStack<T> : Stack<T>, IPoolable

Type Parameters

T
Inheritance
object
Stack<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

initialElements Queue<T>

Returns

ScopedStack<T>

Get(HashSet<T>)

public static ScopedStack<T> Get(HashSet<T> initialElements)

Parameters

initialElements HashSet<T>

Returns

ScopedStack<T>

Get(IEnumerable<T>)

public static ScopedStack<T> Get(IEnumerable<T> initialElements)

Parameters

initialElements IEnumerable<T>

Returns

ScopedStack<T>

Get(List<T>)

public static ScopedStack<T> Get(List<T> initialElements)

Parameters

initialElements List<T>

Returns

ScopedStack<T>

Get(Stack<T>)

public static ScopedStack<T> Get(Stack<T> initialElements)

Parameters

initialElements Stack<T>

Returns

ScopedStack<T>

Get(T[])

public static ScopedStack<T> Get(T[] initialElements)

Parameters

initialElements T[]

Returns

ScopedStack<T>

Return(ScopedStack<T>)

public static void Return(ScopedStack<T> instance)

Parameters

instance ScopedStack<T>