Repository navigation
Everyday C#: Consolidate namespace coverage - #56771
Merged
Merged
Conversation
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
gewarren
approved these changes
Nov 10, 2026
check point
Final edits on this draft.
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Respond to final feedback.
BillWagner
force-pushed
the
namespace-fundamentals
branch
from
November 11, 2026 18:58
88bf973 to
efcf303
Compare
gewarren
approved these changes
Nov 12, 2026
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
In all locations except where a multi-word term is being defined, codefence `using`. This follows the style used by the standard.
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