-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add examples for XML on extension members
#50551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fixes dotnet#49956 Add examples and explanations for writing documentation on `extension` nodes. Include how the XML comments on the `extension` node for `<summary>`, `<param>` and `<typeparam>` are copied to all members of that extension block.
There was a problem hiding this 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 adds comprehensive XML documentation examples for C# extension members, demonstrating how to properly document extension blocks and their members. The changes update the target framework to .NET 10.0 and add documentation showing that XML comments on extension blocks are copied to all members within that block.
Key Changes
- Added new "Extension members" section to XML documentation examples
- Included XML comments for all extension examples showing proper documentation patterns
- Updated target framework from net8.0 to net10.0
- Applied markdown style improvements for consistency with .NET documentation guidelines
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/csharp/language-reference/xmldoc/snippets/xmldoc/xmldoc.csproj | Updated target framework to net10.0 |
| docs/csharp/language-reference/xmldoc/snippets/xmldoc/DocComments.cs | Added new extension example with XML comments demonstrating documentation for extension blocks and members |
| docs/csharp/language-reference/xmldoc/examples.md | Added "Extension members" section explaining XML documentation for extension blocks, plus style improvements |
| docs/csharp/language-reference/keywords/snippets/Extensions.cs | Added comprehensive XML comments to existing extension examples |
| docs/csharp/language-reference/keywords/extension.md | Added note about XML documentation patterns and style improvements |
docs/csharp/language-reference/xmldoc/snippets/xmldoc/DocComments.cs
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/xmldoc/snippets/xmldoc/DocComments.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Genevieve Warren <[email protected]>
Fixes #49956
Add examples and explanations for writing documentation on
extensionnodes.Include how the XML comments on the
extensionnode for<summary>,<param>and<typeparam>are copied to all members of that extension block.Internal previews