We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class MyClass { public string MyProperty { get; set; } }
Warning CS8618 Non-nullable property MyProperty must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
MyProperty
class MyClass { public string MyProperty { get; set; } = default!; }
We expect usage for "Data-Contract" / Serialization types, and also Microsoft.Extensions.Options types.
Fix with C# Required Members (proposal) See https://github.com/dotnet/csharplang/blob/main/proposals/required-members.md
The text was updated successfully, but these errors were encountered:
TimoHeiten
No branches or pull requests
We expect usage for "Data-Contract" / Serialization types, and also Microsoft.Extensions.Options types.
Alternative
Fix with C# Required Members (proposal)
See https://github.com/dotnet/csharplang/blob/main/proposals/required-members.md
The text was updated successfully, but these errors were encountered: