Proposal: auto-property with ref getter #8728
Unanswered
BreyerW
asked this question in
Language Ideas
Replies: 1 comment
-
I'm not sure consistency is a good enough reason. Especially considering that int intTest = 1;
public ref int IntTest { get => ref intTest; } |
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
-
Currently it is impossible to do the following:
It's small weirdo but for consistency with existing auto-property syntax it should be allowed
Beta Was this translation helpful? Give feedback.
All reactions