PoolBase<TSource, TInstance, TSettings>.Items Property |
[This is preliminary documentation and is subject to change.]
Namespace: Umbrace.Unity.PurePool
public IList<TInstance> Items { get; }
This property cannot be accessed until the pool has been initialised.
This property always creates a new List< T> 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(List< TInstance> ) method for a way to avoid the allocation of a new List< T> object.