GenericObjectPoolT Constructor (Int32, Int32) |
[This is preliminary documentation and is subject to change.]
Namespace:
Umbrace.Unity.PurePool
Assembly:
Umbrace.Unity.PurePool (in Umbrace.Unity.PurePool.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax public GenericObjectPool(
int initialSize,
int maximumSize
)
Parameters
- initialSize
- Type: SystemInt32
The initial number of objects to populate the pool with. - maximumSize
- Type: SystemInt32
The maximum size of the pool, which is the maximum number of objects it can contain.
Exceptions Remarks
This constructor uses the public parameterless constructor on type
T for the creation of new objects.
If you need to have greater control over the creation of new objects, or
T does not have a public parameterless
constructor, you should use the overloaded constructor that takes a factory method,
GenericObjectPoolT(FuncT, Int32, Int32).
See Also