| ResourcePoolT Constructor |
Initializes a new instance of the
ResourcePoolT class with the given
un-/initialize methods.
Namespace: DigitalRuneAssembly: 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
)
Public Sub New (
create As Func(Of T),
initialize As Action(Of T),
uninitialize As Action(Of T)
)
public:
ResourcePool(
Func<T>^ create,
Action<T>^ initialize,
Action<T>^ uninitialize
)
new :
create : Func<'T> *
initialize : Action<'T> *
uninitialize : Action<'T> -> ResourcePool
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 See Also