summaryrefslogtreecommitdiff
path: root/Tools/Tool.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/Tool.cs')
-rw-r--r--Tools/Tool.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tools/Tool.cs b/Tools/Tool.cs
new file mode 100644
index 0000000..08ab910
--- /dev/null
+++ b/Tools/Tool.cs
@@ -0,0 +1,14 @@
+namespace ExcelAddIn.Tools;
+
+public abstract class Tool : IDisposable
+{
+ public abstract void Execute();
+
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ protected abstract void Dispose(bool disposing);
+}