ActionDisposable Class

Summary

A simple disposable that calls an action on disposal. This class will also throw an exception on subsiquent disposals.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Util
Interfaces
  • IDisposable
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IDisposable"] Type["ActionDisposable"] class Type type-node

Syntax

public class ActionDisposable : IDisposable

Constructors

Name Summary
ActionDisposable(Action) Create a disposable instance.

Methods

Name Value Summary
Dispose() void
Calls the action.
GitHub