Struct destructor #5370
Answered
by
koszeggy
sebas77
asked this question in
Language Ideas
Struct destructor
#5370
-
Hi, I found myself many times wanting a very simple ref struct destructor. It would be just a method that is called when the ref struct gets out of the scope. Nothing fancy, but I have use cases for it in my framework (I have never used disposing ref structs because I cannot trust the framework user to remember using the using keyword). Would it be technically possible to have it? |
Beta Was this translation helpful? Give feedback.
Answered by
koszeggy
Oct 31, 2021
Replies: 2 comments 3 replies
-
Duplicate of #1110 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
svick
-
I think it's actually #4345 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Duplicate of #1110