-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C#8 Nullable References #2
Comments
If you are going to use
|
Hmm, well, our codebase is quite large and the disabling the rule CS8618 would be counter-intuitive. Could your analyser disable this rule just for types/members that have your attribute applied? |
It looks like Roslyn support such scenario thanks to I will try to implement it. Thanks for reporting this suggestion. |
Thank you for investigating it! |
I have a working POC. I will try to finish it and publish it today afternoon. |
@SeriousM I've just released version |
@SeriousM I've introduced another attribute |
For anyone trying out this library with VS Code: |
Hi! Your article was very nice, ty for that.
We're using the new feature from c# to annotate nullable reference types with poco classes.
Since the new feature requires properties to be initialized if not mentioned in a constructor we came up with this pattern:
This way the adaption on legacy code is quite simple by just appending ` = default!;" to each property.
Could your extension help to avoid this additional code?
Best, Bernhard
The text was updated successfully, but these errors were encountered: