Repository navigation
Everyday C#: Consolidate namespace coverage - #56771
Open
BillWagner wants to merge 2 commits into
Open
BillWagner wants to merge 2 commits into
BillWagner wants to merge 2 commits into
Conversation
check point
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the namespace documentation and sample updates.
No open issues 🎉
What changed in this PR
This PR supports #56747 by establishing a two-level C# namespace learning path: a concise introduction and a dedicated article for detailed coverage.
Changes:
- Retains introductory namespace guidance and consolidates deeper explanations of declarations, imports, aliases, and references.
- Adds qualification, alias, and import examples, with selectable equivalent block-scoped and file-scoped samples.
- Updates navigation, language-reference links, and legacy redirects to the detailed article.
| File | Description |
|---|---|
docs/csharp/toc.yml |
Adds navigation to the detailed namespace article. |
docs/csharp/language-reference/keywords/using-directive.md |
Links to the detailed article. |
docs/csharp/language-reference/keywords/namespace.md |
Links to the detailed article. |
docs/csharp/fundamentals/program-structure/snippets/namespaces/TupleAlias.cs |
Explicitly qualifies System.Math. |
docs/csharp/fundamentals/program-structure/snippets/namespaces/Products.cs |
Demonstrates nested namespaces with same-named types. |
docs/csharp/fundamentals/program-structure/snippets/namespaces/ProductNames.cs |
Demonstrates qualification and type and namespace aliases. |
docs/csharp/fundamentals/program-structure/snippets/namespaces/namespaces.csproj |
Selects between equivalent namespace-style examples. |
docs/csharp/fundamentals/program-structure/snippets/namespaces/Imports.cs |
Adds a regular using directive example. |
docs/csharp/fundamentals/program-structure/snippets/namespaces/GlobalUsings.cs |
Focuses the global import example on System.Text. |
docs/csharp/fundamentals/program-structure/snippets/namespaces/GlobalMessage.cs |
Demonstrates consumption of a global import. |
docs/csharp/fundamentals/program-structure/snippets/namespaces/FileScopedExample.cs |
Simplifies the file-scoped Customer example. |
docs/csharp/fundamentals/program-structure/snippets/namespaces/BlockScoped.cs |
Provides the equivalent block-scoped Customer example. |
docs/csharp/fundamentals/program-structure/snippets/namespaces/Basics.cs |
Simplifies the introduction sample and invokes additional examples. |
docs/csharp/fundamentals/program-structure/namespaces.md |
Preserves a short introduction with a link to deeper coverage. |
docs/csharp/fundamentals/namespaces/overview.md |
Adds detailed namespace guidance and distinguishes imports from references. |
.openpublishing.redirection.csharp.json |
Retargets legacy namespace URLs to the detailed article. |
Review effort: Balanced
BillWagner
marked this pull request as ready for review
November 6, 2026 21:29
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 #56747
Internal previews
Toggle expand/collapse
Build report