[Proposal] Shorthand for minimizing IDisposable resource lifetime #4738
Unanswered
rwdd
asked this question in
Language Ideas
Replies: 1 comment 4 replies
-
@rwdd At what point would the instance be disposed in your examples? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Coming from the old style using directive where we wrote something like.
We now can write it like
But wouldn't it be better to be able to write it like
Or maybe
Beta Was this translation helpful? Give feedback.
All reactions