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
Syntax
public class ActionDisposable : IDisposable
Constructors
Name | Summary |
---|---|
ActionDisposable |
Create a disposable instance. |
Methods
Name | Return Value | Summary |
---|---|---|
Dispose |
void |
Calls the action.
|