Click or drag to resize
DigitalRuneResourcePoolT Constructor

Namespace: DigitalRune
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public ResourcePool(
	Func<T> create,
	Action<T> initialize,
	Action<T> uninitialize
)

Parameters

create
Type: SystemFuncT
The function that creates a new item of type T.
initialize
Type: SystemActionT
The method that is executed on an item when it is obtained from the pool - can be .
uninitialize
Type: SystemActionT
The method that is executed on an item when it is recycled - can be .
Exceptions
ExceptionCondition
ArgumentNullExceptioncreate is .
See Also