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
?.
There should be no warnings in the following. Currently, Possible dereference of a null reference is reported for c and c.F in c.F.ToString().
Possible dereference of a null reference
c
c.F
c.F.ToString()
class C { object? F; static void M(C? c) { if (c?.F != null) c.F.ToString(); } }
The text was updated successfully, but these errors were encountered:
cc @bkoelman
Sorry, something went wrong.
null
node
Fixed by #28722
No branches or pull requests
There should be no warnings in the following. Currently,
Possible dereference of a null reference
is reported forc
andc.F
inc.F.ToString()
.The text was updated successfully, but these errors were encountered: