PR 8 — Null Safety: Overview, Nullable Value Types, Null Operators#53509
Open
BillWagner wants to merge 5 commits intodotnet:mainfrom
Open
PR 8 — Null Safety: Overview, Nullable Value Types, Null Operators#53509BillWagner wants to merge 5 commits intodotnet:mainfrom
BillWagner wants to merge 5 commits intodotnet:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new Null safety subsection to the C# Fundamentals docs, with three new articles and corresponding runnable snippet projects to support the content.
Changes:
- Adds a Null safety node to
docs/csharp/toc.ymlwith links to three new Fundamentals articles. - Introduces three new articles: overview, nullable value types, and null operators.
- Adds three new snippet projects (one per article) with sample code referenced via
:::codeincludes.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| docs/csharp/toc.yml | Adds the new Null safety subsection and links to the three new articles. |
| docs/csharp/fundamentals/null-safety/index.md | New overview article introducing null safety concepts and linking to related pages/snippets. |
| docs/csharp/fundamentals/null-safety/nullable-value-types.md | New article explaining nullable value types with referenced runnable snippets. |
| docs/csharp/fundamentals/null-safety/null-operators.md | New article covering null-related operators, including examples and referenced runnable snippets. |
| docs/csharp/fundamentals/null-safety/snippets/null-safety-overview/null-safety-overview.csproj | New snippet project for the overview article. |
| docs/csharp/fundamentals/null-safety/snippets/null-safety-overview/Program.cs | New overview snippets demonstrating null checks, NVT/NRT basics, and operator quick reference. |
| docs/csharp/fundamentals/null-safety/snippets/nullable-value-types/nullable-value-types.csproj | New snippet project for nullable value types. |
| docs/csharp/fundamentals/null-safety/snippets/nullable-value-types/Program.cs | New snippets demonstrating declaration, checks, fallbacks, and lifted operators for nullable value types. |
| docs/csharp/fundamentals/null-safety/snippets/null-operators/null-operators.csproj | New snippet project for null operators. |
| docs/csharp/fundamentals/null-safety/snippets/null-operators/Program.cs | New snippets demonstrating ?., ?[], ??, ??=, is null, and !. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #52837
Create the
fundamentals/null-safety/directory and three new articles (overview, nullable value types, null operators) with three corresponding snippet projects, then insert the section intotoc.yml. All are brand-new files — no redirects needed. PR 9 handles the NRT, resolve-warnings, migration, and tutorial articles.Internal previews