Skip to content

Everyday C#: Consolidate namespace coverage - #56771

Open
BillWagner wants to merge 2 commits into
dotnet:mainfrom
BillWagner:namespace-fundamentals
Open

BillWagner wants to merge 2 commits into
dotnet:mainfrom
BillWagner:namespace-fundamentals

Conversation

@BillWagner

@BillWagner BillWagner commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

check point

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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
BillWagner marked this pull request as ready for review November 6, 2026 21:29
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.

Everyday C#: Consolidate namespace fundamentals

2 participants