C# Class Win32.ActionDisposable

An IDisposable implementation that executes an Action upon disposal.
Inheritance: IDisposable
Afficher le fichier Open project: raoyutian/Win32

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

Dispose() public méthode

Calls the defined Action.
public Dispose ( ) : void
Résultat void