![]() |
Able
Askowl Base Library Enabler
|
Simplified creation of an action that happens at the end of a using statement no matter what else happens. The using is am implicit try/finally block with the IDisposable called as part of finally. It is a struct, so no added heap footprint. IDisposable Ephemeral() => new Disposable {action = () => whatever};
More...
Definition at line 7 of file Disposable.cs.