You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Near the start of the section "Examine Survey Responses", the article states "Because surveyResponses is a non-nullable reference type, no checks are necessary before de-referencing it", however surveyResponses has been declared as nullable in an earlier code snippet. This also means that the second line in the code snippet ("public string Answer(int index) => surveyResponses.GetValueOrDefault(index, "No answer")!;") should be checking for surveyResponse being null.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: b991cba9-efd4-68ae-283a-b575054b4907
Version Independent ID: 793f790b-e2aa-e292-b12b-f4ba9763f172
@MaxTranced Thanks for doing the work for the fix.
From this page You should see a button that says "new pull request". From there, you can edit the pull request title and description, then click "Submit".
Activity
BillWagner commentedon Sep 3, 2019
Thanks for writing this up @andyste1
You're correct, this portion of the article does need to change. I've added it to this month's sprint.
dotnet#14082 Proposed fix
MaxTranced commentedon Oct 1, 2019
Um.... N00bish, I cannot figure out how to submit a PR with MaxTranced@6319bcb
BillWagner commentedon Oct 1, 2019
@MaxTranced Thanks for doing the work for the fix.
From this page You should see a button that says "new pull request". From there, you can edit the pull request title and description, then click "Submit".
Thanks for working to help us improve our docs!
#14082 Proposed fix (#14890)