Skip to content

Consider selling the required modifier in CS8618 warning #75947

Answered by RikkiGibson
JJLovesLife asked this question in Ideas
Discussion options

You must be logged in to vote

The diagnostic message I am seeing is

warning CS8618: Non-nullable property 'Prop' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

SharpLab

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JJLovesLife
Comment options

Answer selected by RikkiGibson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants