The ability to do member nullability narrowing on constructors #9465
Unanswered
JonasAlmaas
asked this question in
Language Ideas
Replies: 1 comment
-
See also #4563 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice if there was a way to specify that a constructor will set a specific member/property.
You can do this with a checker function and the
MemberNotNull
attribute. But there is really no need to do an extra check.Maybe something like this?:
Todays usage (without
MemberNotNull
)Beta Was this translation helpful? Give feedback.
All reactions