Skip to content

M_CodeJam_Disposable_Create

Andrew Koryavchenko edited this page Jun 17, 2018 · 9 revisions

Disposable.Create Method (Action)

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(
	Action disposeAction
)

VB

Public Shared Function Create ( 
	disposeAction As Action
) As IDisposable

F#

static member Create : 
        disposeAction : Action -> IDisposable 

Parameters

 

disposeAction
Type: System.Action
The dispose action.

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