ActionDisposable Class
A simple disposable that calls an action on disposal. This class will also throw an exception on subsequent disposals.
Namespace
Statiq.Common
Interfaces
  • IDisposable
Base Types
  • object
ActionDisposable
object
IDisposable

Syntax

public class ActionDisposable : IDisposable

Constructors

Name Summary
ActionDisposable(Action) Create a disposable instance.

Methods

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

Extension Methods