Skip to content

Move remarks back from conceptual docs repo (CustomReflectionContext) - #129404

Merged
gewarren merged 13 commits into
dotnet:mainfrom
gewarren:more-supplemental-remarks
Jun 17, 2026
Merged

Move remarks back from conceptual docs repo (CustomReflectionContext)#129404
gewarren merged 13 commits into
dotnet:mainfrom
gewarren:more-supplemental-remarks

Conversation

@gewarren

Copy link
Copy Markdown
Contributor

Contributes to dotnet/dotnet-api-docs#12613.

We're moving supplemental API remarks out of the dotnet/docs repo and back into either:

  • The /// (like this PR, for libraries that already have their source of truth here)
  • The dotnet-api-docs repo, in preparation for backporting to ///
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @steveisok, @dotnet/area-system-reflection
See info in area-owners.md if you want to be subscribed.

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.

Pull request overview

This PR moves supplemental documentation for System.Reflection.Context.CustomReflectionContext into the in-repo XML doc comments, including a linked example snippet sourced from the test project, and updates contributor guidance for referencing examples.

Changes:

  • Replaces the external “supplemental remarks” link with in-source markdown-formatted <remarks> content and adds an <example> that sources a snippet from tests.
  • Adds a new CustomReflectionContext.Examples.cs file under the test project and includes it in the test .csproj for snippet validation.
  • Updates the “adding API” guidelines to describe using <example> + <code ... source=... region=... /> for examples.

Reviewed changes

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

File Description
src/libraries/System.Reflection.Context/tests/System.Reflection.Context.Tests.csproj Includes the new CustomReflectionContext.Examples.cs in the test compilation list.
src/libraries/System.Reflection.Context/tests/CustomReflectionContext.Examples.cs Adds a docs snippet source file intended to be validated during test runs.
src/libraries/System.Reflection.Context/src/System/Reflection/Context/CustomReflectionContext.cs Inlines markdown <remarks> and adds an <example> that pulls from the new test snippet file.
docs/coding-guidelines/adding-api-guidelines.md Documents the <example>/<code ... /> approach (and when to use code-csharp instead).
Comment thread src/libraries/System.Reflection.Context/tests/CustomReflectionContext.Examples.cs Outdated
Comment thread docs/coding-guidelines/adding-api-guidelines.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 15, 2026 17:21

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.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Comment thread docs/coding-guidelines/adding-api-guidelines.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 15, 2026 17:42
@gewarren
gewarren marked this pull request as ready for review June 15, 2026 17:44

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.

Pull request overview

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

Comment thread src/libraries/System.Reflection.Context/tests/CustomReflectionContext.Examples.cs Outdated
Comment thread src/libraries/System.Reflection.Context/tests/CustomReflectionContext.Examples.cs Outdated
Comment thread src/libraries/System.Reflection.Context/tests/CustomReflectionContext.Examples.cs Outdated
Comment thread src/libraries/System.Reflection.Context/tests/CustomReflectionContext.Examples.cs Outdated
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Copilot AI review requested due to automatic review settings June 15, 2026 21:06
@gewarren
gewarren enabled auto-merge (squash) June 15, 2026 21:06

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.

Pull request overview

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

Comment thread src/libraries/System.Reflection.Context/tests/CustomReflectionContext.Examples.cs Outdated
Comment thread src/libraries/System.Reflection.Context/tests/CustomReflectionContext.Examples.cs Outdated
Comment thread src/libraries/System.Reflection.Context/tests/CustomReflectionContext.Examples.cs Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 15, 2026 21:21

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.

Pull request overview

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

Comment thread src/libraries/System.Reflection.Context/tests/CustomReflectionContext.Examples.cs Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 15, 2026 22:31

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.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Copilot AI review requested due to automatic review settings June 16, 2026 01:11

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.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings June 16, 2026 20:13

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.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@jkotas

jkotas commented Jun 17, 2026

Copy link
Copy Markdown
Member

/ba-g infrastructure timeouts

@gewarren
gewarren merged commit 02c4ff5 into dotnet:main Jun 17, 2026
93 of 97 checks passed
@gewarren
gewarren deleted the more-supplemental-remarks branch June 17, 2026 14:42
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 18, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.