 | ObjectPoolT Constructor (Int32, ObjectPoolTCreatePoolObjectDelegate) |
Creates a new pool with the specified initial and maximum capacity.
Namespace: Slash.Collections.PoolsAssembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntaxpublic ObjectPool(
int capacity,
ObjectPoolTCreatePoolObjectDelegate createPoolObject
)
Public Sub New (
capacity As Integer,
createPoolObject As ObjectPoolTCreatePoolObjectDelegate
)
public:
ObjectPool(
int capacity,
ObjectPoolTCreatePoolObjectDelegate^ createPoolObject
)
new :
capacity : int *
createPoolObject : ObjectPoolTCreatePoolObjectDelegate -> ObjectPool
Parameters
- capacity
- Type: SystemInt32
Maximum capacity of the pool. - createPoolObject
- Type: Slash.Collections.PoolsObjectPoolTCreatePoolObjectDelegate
Factory method for creating new pool objects.
See Also