[Everyday C#] PR 13: Expressions and Statements #54729
Open
BillWagner wants to merge 2 commits into
Open
Conversation
Run the first draft for Everyday C# PR 13: iteration statements in C#.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Expressions and statements group to the C# Fundamentals docs, introducing two new concept articles (selection statements and iteration statements) with dedicated snippet projects that match the existing Fundamentals/Strings snippet structure.
Changes:
- Registered a new Expressions and statements group in
docs/csharp/toc.ymlwith links to two new articles. - Added new concept articles for selection statements and iteration statements under
docs/csharp/fundamentals/statements/. - Added new, buildable snippet projects for both articles under
docs/csharp/fundamentals/statements/snippets/.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| docs/csharp/toc.yml | Adds the new TOC group and links to the two new Fundamentals articles. |
| docs/csharp/fundamentals/statements/selection-statements.md | New concept article that references selection-statement snippets via :::code. |
| docs/csharp/fundamentals/statements/iteration-statements.md | New concept article that references iteration-statement snippets via :::code. |
| docs/csharp/fundamentals/statements/snippets/selection-statements/selection-statements.csproj | New snippet project targeting net10.0, consistent with existing Fundamentals snippet projects. |
| docs/csharp/fundamentals/statements/snippets/selection-statements/Program.cs | New selection statement examples with snippet region markers used by the article. |
| docs/csharp/fundamentals/statements/snippets/iteration-statements/iteration-statements.csproj | New snippet project targeting net10.0, consistent with existing Fundamentals snippet projects. |
| docs/csharp/fundamentals/statements/snippets/iteration-statements/Program.cs | New iteration statement examples (including await foreach) with snippet region markers used by the article. |
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 #53555
Create a new
fundamentals/statements/section with two concept articles (selection statements, iteration statements), each with its own snippet project, and register a new Expressions and statements TOC group. All content is net-new, so no redirects are needed. Follows the Strings section conventions (PRs 10–12).Internal previews