ResourceReleaserT Constructor |
Constructs a new ResourceReleaser object with the value and action given.
Namespace:
Atalasoft.Imaging
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public ResourceReleaser(
T val,
Action<T> action
)
Public Sub New (
val As T,
action As Action(Of T)
)
Parameters
- val
- Type: T
Val is an object that should be managed by the ResourceReleaser - action
- Type: SystemActionT
Action is an action that will be executed upon disposal of the ResourceReleaser. Action will
be passed val when it is executed.
See Also