Click or drag to resize

PoolBaseTSource, TInstance, TSettingsItems Property

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

Gets a list of items currently contained by the pool.

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 IList<TInstance> Items { get; }

Property Value

Type: IListTInstance

Implements

IObjectPoolTItems
Remarks

This property cannot be accessed until the pool has been initialised.

This property always creates a new ListT each time the property getter is accessed. For performance reasons the value should be cached where possible, to avoid the costs of object instantiation and garbage collection.

See the GetItems(ListTInstance) method for a way to avoid the allocation of a new ListT object.

See Also