CapyKit/Documentation/Help/M_CapyKit_Pool_1_FillPoolItemCollection_2.md

1.1 KiB

FillPoolItemCollection(Int32, Func<T>) Method

Initializes the pool with the specified number of items using the specified constructor selector.

Definition

Namespace: CapyKit
Assembly: CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d

C#

private void FillPoolItemCollection(
	int poolSize,
	Func<T> constructorSelector
)

F#

private member FillPoolItemCollection : 
        poolSize : int * 
        constructorSelector : Func<'T> -> unit 

Parameters

  Int32
The size of the pool.
  Func(T)
The constructor selector.

See Also

Reference

Pool(T) Class
FillPoolItemCollection Overload
CapyKit Namespace