Closed jnm2 closed 2 years ago
What do you think about doing a one-character change to allow new Owned<X>(x, dispose: null) instead of the current options, new Owned<X>(x, dispose: () => { }); or new Owned<X>(x, dispose: null!);?
new Owned<X>(x, dispose: null)
new Owned<X>(x, dispose: () => { });
new Owned<X>(x, dispose: null!);
An alternative that would make this much less interesting to do would be https://github.com/YairHalberstadt/stronginject/issues/156 with Owned.WithoutDisposal(x).
Owned.WithoutDisposal(x)
Agreed.
Might as well do this as part of your current work on IOwned.
What do you think about doing a one-character change to allow
new Owned<X>(x, dispose: null)
instead of the current options,new Owned<X>(x, dispose: () => { });
ornew Owned<X>(x, dispose: null!);
?An alternative that would make this much less interesting to do would be https://github.com/YairHalberstadt/stronginject/issues/156 with
Owned.WithoutDisposal(x)
.