Class Pool<T>
Assembly: doc.dll
Syntax
public class Pool<T> : object
Type Parameters
Constructors
|
Improve this Doc
View Source
Pool(Func<T>, Int32)
Declaration
public Pool(Func<T> objectGenerator, int initialCapacity)
Parameters
Type |
Name |
Description |
Func<T> |
objectGenerator |
|
Int32 |
initialCapacity |
|
Properties
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
Methods
|
Improve this Doc
View Source
Get()
Declaration
Returns
|
Improve this Doc
View Source
Return(T)
Declaration
public void Return(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
|
Improve this Doc
View Source
Take()
Declaration
Returns