Table of Contents

DisposableAction Class

Definition

Namespace
Tyne
Assembly
Tyne.Core.dll

Executes an Action when disposed.

public sealed class DisposableAction : IDisposable
Inheritance
DisposableAction
Implements

Remarks

As with IDisposable, this implementation is not thread safe.

Constructors

DisposableAction(Action)

Creates a new instance of DisposableAction which will only call action once.

DisposableAction(Action, bool)

Creates a new instance of DisposableAction.

Methods

Dispose()

Calls the disposal action.