Click or drag to resize
ObjectPoolT Class
Pool of re-usable objects.
Inheritance Hierarchy
SystemObject
  Slash.Collections.PoolsObjectPoolT

Namespace: Slash.Collections.Pools
Assembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntax
public class ObjectPool<T>
where T : new(), IPoolable

Type Parameters

T
Type of the objects of this pool.

The ObjectPoolT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCapacity
Maximum capacity of the pool.
Public propertyCreatePoolObject
Creates a new object to be added to the pool.
Top
Methods
  NameDescription
Public methodAlloc
Returns a pooled object, if there are any left, or a new one, otherwise.
Public methodFree
Returns the passed object to this pool, if it's not already at maximum capacity.
Top
See Also