new-infofer-scraper/server/Utils/ActionDisposable.cs
Dan Cojocaru 7b13d09514
A whole C# rewrite
In one commit.
Yes, you're seeing it right.
Yes, I don't know what I was thinking.
2022-08-03 00:38:53 +03:00

15 lines
231 B
C#

using System;
namespace Server.Utils;
public class ActionDisposable : IDisposable {
public Action Action { get; init; }
public ActionDisposable(Action action) {
Action = action;
}
public void Dispose() {
Action();
}
}