Click or drag to resize

GenericObjectPoolTMaximumSize Property

[This is preliminary documentation and is subject to change.]

Gets or sets the maximum size of the pool, which is the maximum number of objects it can contain.

Namespace:  Umbrace.Unity.PurePool
Assembly:  Umbrace.Unity.PurePool (in Umbrace.Unity.PurePool.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public int MaximumSize { get; set; }

Property Value

Type: Int32

Implements

IObjectPoolMaximumSize
Remarks

The maximum size must be greater than, or equal to, zero. It cannot be a negative number.

If an object is released to the pool while the pool is full, the object will be destroyed.

If MaximumSize is set to a value lower than the current Count, the pool will be reduced in size by destroying excess objects.

See Also