Skip to content

Conversation

@BillWagner
Copy link
Member

@BillWagner BillWagner commented Dec 2, 2025

Responding to #50244

These files should remain in the repo, and should generally be included in the article


Internal previews

📄 File 🔗 Preview link
docs/csharp/fundamentals/tutorials/xml-documentation.md Tutorial: Create XML documentation

Responding to dotnet#50244

These files should remain in the repo, and should generally be included in the article
Copilot AI review requested due to automatic review settings December 2, 2025 16:30
@BillWagner BillWagner requested a review from a team as a code owner December 2, 2025 16:30
@dotnetrepoman dotnetrepoman bot added this to the December 2025 milestone Dec 2, 2025
@BillWagner BillWagner requested a review from gewarren December 2, 2025 16:30
Copilot finished reviewing on behalf of BillWagner December 2, 2025 16:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR integrates code snippets from separate files into the XML documentation tutorial article, replacing inline code examples with references to full source files. The changes improve maintainability by using the standard snippet reference pattern instead of duplicating code in the documentation.

Key changes:

  • Added snippet references to the markdown article for Transaction record and BankAccount class examples.
  • Updated derived classes (InterestEarningAccount, LineOfCreditAccount, GiftCardAccount) to use <inheritdoc/> tags, demonstrating XML documentation inheritance.
  • Added snippet markers to InterestEarningAccount.cs to enable selective code inclusion in the article.
  • Cleaned up unnecessary comments from BankAccount.cs.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
docs/csharp/fundamentals/tutorials/xml-documentation.md Added code snippet references and link to source repository; removed inline code example for <inheritdoc/> usage
docs/csharp/fundamentals/tutorials/snippets/xml-documentation/BankAccount.cs Removed extraneous comment line for cleaner code presentation
docs/csharp/fundamentals/tutorials/snippets/xml-documentation/InterestEarningAccount.cs Added snippet markers and replaced detailed <summary> with <inheritdoc/> to demonstrate documentation inheritance
docs/csharp/fundamentals/tutorials/snippets/xml-documentation/LineOfCreditAccount.cs Replaced detailed <summary> with <inheritdoc/> to demonstrate documentation inheritance pattern
docs/csharp/fundamentals/tutorials/snippets/xml-documentation/GiftCardAccount.cs Replaced detailed <summary> with <inheritdoc/> to demonstrate documentation inheritance pattern

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@BillWagner BillWagner merged commit 5bcb67f into dotnet:main Dec 2, 2025
9 checks passed
@BillWagner BillWagner deleted the use-xml-snippets branch December 2, 2025 17:16
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.

2 participants