Class StackPool
Public
Lightweight Stack Pool.
Handy class for pooling stacks of type T.
Usage:
Claim a new stack using
Stack<SomeClass> foo = StackPool<SomeClass>.Claim ();
Use it and do stuff with it
Release it with
StackPool<SomeClass>.Release (foo);
You do not need to clear the stack before releasing it. After you have released a stack, you should never use it again.
Warning
This class is not thread safe
Since
Version 3.2
Public Static Methods
Private/Protected Members
pool
Internal pool.
Private
Static
Readonly