Skip to content

M_CodeJam_Disposable_Create__1

Andrew Koryavchenko edited this page Jun 17, 2018 · 1 revision

Disposable.Create(T) Method (Action(T), T)

Creates IDisposable instance that calls disposeAction on disposing.

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

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 

Parameters

 

disposeAction
Type: System.Action(T)
The dispose action.
state
Type: T
A value that contains data for the disposal action.

Type Parameters

 

T
[Missing documentation for "M:CodeJam.Disposable.Create1(System.Action{0},``0)"]

Return Value

Type: IDisposable
Instance of IDisposable that calls disposeAction on disposing.

See Also

Reference

Disposable Class
Create Overload
CodeJam Namespace

Clone this wiki locally