-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Disposable_Create__1
Andrew Koryavchenko edited this page Jun 17, 2018
·
1 revision
Creates IDisposable instance that calls disposeAction on disposing.
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static IDisposable Create<T>(
Action<T> disposeAction,
T state
)
VB
Public Shared Function Create(Of T) (
disposeAction As Action(Of T),
state As T
) As IDisposable
F#
static member Create :
disposeAction : Action<'T> *
state : 'T -> IDisposable
- disposeAction
- Type: System.Action(T)
The dispose action. - state
- Type: T
A value that contains data for the disposal action.
- T
- [Missing documentation for "M:CodeJam.Disposable.Create
1(System.Action{
0},``0)"]
Type: IDisposable
Instance of IDisposable that calls disposeAction on disposing.