Skip to content

Everyday C#: Consolidate namespace coverage - #56771

Merged
BillWagner merged 8 commits into
dotnet:mainfrom
BillWagner:namespace-fundamentals
Nov 12, 2026
Merged

BillWagner merged 8 commits into
dotnet:mainfrom
BillWagner:namespace-fundamentals

Conversation

@BillWagner

@BillWagner BillWagner commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

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
@BillWagner
BillWagner requested a review from gewarren November 10, 2026 18:24
BillWagner and others added 6 commits November 11, 2026 13:57
check point
Final edits on this draft.
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Respond to final feedback.
@BillWagner
BillWagner force-pushed the namespace-fundamentals branch from 88bf973 to efcf303 Compare November 11, 2026 18:58
BillWagner and others added 2 commits November 12, 2026 12:03
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.
@BillWagner
BillWagner merged commit 678c15c into dotnet:main Nov 12, 2026
12 checks passed
@BillWagner
BillWagner deleted the namespace-fundamentals branch November 12, 2026 17:56
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

3 participants