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
graph BT
Type-->Base0["object"]
Type-.->Interface0["IDisposable"]
Type["ActionDisposable"]
class Type type-node
Syntax
public class ActionDisposable : IDisposable
Constructors
Name | Summary |
---|---|
ActionDisposable |
Create a disposable instance. |
Methods
Name | Return Value | Summary |
---|---|---|
Dispose |
void |
Calls the action.
|