[Proposal] Allow in-place modification of the members of the struct-typed read & writable Property #9355
Unanswered
Delsin-Yu
asked this question in
Language Ideas
Replies: 1 comment 13 replies
-
This can lead to unexpected results in multi-threaded scenarios, and while it's perfectly fine for you to do this - because you know multiple threads aren't in play in your case - adding it to the language may be too risky - it would become a feature which sometimes does something very bad. |
Beta Was this translation helpful? Give feedback.
13 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.
-
In current version of C#, the following example causes the CS1612 compiler error:
I'm proposing a syntactic sugar that allows the above usecase.
The following code:
will be translated to
Beta Was this translation helpful? Give feedback.
All reactions