Disposables icon indicating copy to clipboard operation
Disposables copied to clipboard

Add a Nevermind-Disposable pattern

Open StephenCleary opened this issue 3 years ago • 0 comments

Find a good API for this kind of logic:

using var something = ...;
// Code that should dispose "something" on exception or return.
something.Nevermind();
// Code that should *not* dispose "something" on exception or return.

StephenCleary avatar Sep 13 '22 14:09 StephenCleary