C# Class Win32.ActionDisposable

An IDisposable implementation that executes an Action upon disposal.
Inheritance: IDisposable
显示文件 Open project: raoyutian/Win32

Public Methods

Method Description
ActionDisposable ( Action disposeAction ) : System

Constructs a new disposable with the given action used for disposal.

Dispose ( ) : void

Calls the defined Action.

Method Details

ActionDisposable() public method

Constructs a new disposable with the given action used for disposal.
public ActionDisposable ( Action disposeAction ) : System
disposeAction Action The action that is called upon disposal.
return System

Dispose() public method

Calls the defined Action.
public Dispose ( ) : void
return void