Skip to content

Add simplified null parameter checks#28890

Merged
BillWagner merged 10 commits intodotnet:mainfrom
BillWagner:bang-bang
Apr 5, 2022
Merged

Add simplified null parameter checks#28890
BillWagner merged 10 commits intodotnet:mainfrom
BillWagner:bang-bang

Conversation

@BillWagner
Copy link
Copy Markdown
Member

Fixes #28443

Add what's new information for the !! operator, available in VS 17.1, and .NET SDK 6.0.200 as preview features.

IEvangelist
IEvangelist previously approved these changes Apr 1, 2022
Copy link
Copy Markdown
Member

@IEvangelist IEvangelist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome! Just have a few suggestions, otherwise :shipit:

Comment thread docs/csharp/language-reference/operators/null-parameter-check.md
Comment thread docs/csharp/language-reference/operators/null-parameter-check.md Outdated
Comment thread docs/csharp/language-reference/operators/null-parameter-check.md
Comment thread docs/csharp/language-reference/operators/null-parameter-check.md Outdated
Comment thread docs/csharp/language-reference/operators/null-parameter-check.md Outdated
Comment thread docs/csharp/language-reference/operators/null-parameter-check.md
Comment thread docs/csharp/language-reference/operators/null-parameter-check.md Outdated
Comment thread docs/csharp/whats-new/csharp-11.md
Comment thread docs/csharp/whats-new/csharp-11.md Outdated
Comment thread docs/csharp/language-reference/operators/null-parameter-check.md Outdated
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Günther Foidl <gue@korporal.at>
Comment thread docs/csharp/language-reference/operators/null-parameter-check.md
Comment thread docs/csharp/language-reference/operators/snippets/shared/u2ngxcbv.ld0~ Outdated
@BillWagner BillWagner dismissed IEvangelist’s stale review April 5, 2022 21:15

I've made significant edits since this was approved.

Comment on lines +5 to +6
f1_keywords:
- "!!_CSharpKeyword"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RikkiGibson Now Roslyn can support !! in F1 :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, great. Do we need to wire anything up to make that happen?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RikkiGibson Likely yes we'll need to update CSharpHelpContextService. Tests

@BillWagner BillWagner merged commit 920a2c7 into dotnet:main Apr 5, 2022
@BillWagner BillWagner deleted the bang-bang branch April 5, 2022 22:05
@gfoidl
Copy link
Copy Markdown
Member

gfoidl commented Apr 6, 2022

@BillWagner thanks for the updates! Now it reads very well and correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[17.1] Parameter null checking

6 participants