Move lengthy remarks for DynamicMethod to conceptual docs repo#51571
Merged
gewarren merged 10 commits intodotnet:mainfrom Feb 11, 2026
Merged
Move lengthy remarks for DynamicMethod to conceptual docs repo#51571gewarren merged 10 commits intodotnet:mainfrom
gewarren merged 10 commits intodotnet:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Moves long API reference remarks for System.Reflection.Emit.DynamicMethod into this conceptual docs repo to keep API docs concise while preserving detailed guidance.
Changes:
- Adds new “Supplemental API remarks” pages for
DynamicMethodmembers (constructors,CreateDelegate,GetILGenerator,Invoke, andIsSecurity*). - Updates
docs/fundamentals/toc.ymlto nest the new pages under the existing DynamicMethod entry. - Adds/updates snippet projects and sources referenced by the new conceptual pages.
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/fundamentals/toc.yml | Nests DynamicMethod supplemental remark pages under the Reflection Emit TOC section. |
| docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod.md | Keeps type-level supplemental remarks, and updates xref formatting. |
| docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-createdelegate.md | New supplemental remarks page for CreateDelegate overloads and examples. |
| docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-ctor.md | New supplemental remarks page for constructors and security/visibility behavior. |
| docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-getilgenerator.md | New supplemental remarks page for GetILGenerator overloads and examples. |
| docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-invoke.md | New supplemental remarks page for Invoke, including behavior notes and examples. |
| docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritycritical.md | New supplemental remarks page describing IsSecurity* transparency properties. |
| docs/fundamentals/runtime-libraries/includes/context.md | Changes the shared “supplementary remarks” banner to a NOTE block. |
| docs/fundamentals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/Overview/vb/source.vb | Adds VB overview snippet used by the new conceptual pages. |
| docs/fundamentals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/Overview/vb/Project.vbproj | Adds VB project file to build the overview snippet. |
| docs/fundamentals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/Overview/csharp/source.cs | Adds C# overview snippet used by the new conceptual pages. |
| docs/fundamentals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/Overview/csharp/Project.csproj | Adds C# project file to build the overview snippet. |
| docs/fundamentals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/.ctor/vb/source1.vb | Adds VB constructor snippet used by the constructors/CreateDelegate pages. |
| docs/fundamentals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/.ctor/vb/source.vb | Adds VB snippet demonstrating owner/type association and closed delegates. |
| docs/fundamentals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/.ctor/vb/Project.vbproj | Adds VB project file to build the .ctor snippets. |
| docs/fundamentals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/.ctor/csharp/source1.cs | Adds C# constructor snippet used by the constructors/CreateDelegate pages. |
| docs/fundamentals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/.ctor/csharp/source.cs | Adds C# snippet demonstrating owner/type association and closed delegates. |
| docs/fundamentals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/.ctor/csharp/Project.csproj | Adds C# project file to build the .ctor snippets. |
...entals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/Overview/vb/source.vb
Outdated
Show resolved
Hide resolved
docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritycritical.md
Outdated
Show resolved
Hide resolved
...tals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/.ctor/csharp/source1.cs
Outdated
Show resolved
Hide resolved
...tals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/.ctor/csharp/source1.cs
Outdated
Show resolved
Hide resolved
...amentals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/.ctor/vb/source1.vb
Outdated
Show resolved
Hide resolved
...tals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/.ctor/csharp/source1.cs
Outdated
Show resolved
Hide resolved
...amentals/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/.ctor/vb/source1.vb
Outdated
Show resolved
Hide resolved
...ls/runtime-libraries/snippets/System.Reflection.Emit/DynamicMethod/Overview/csharp/source.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
meaghanlewis
approved these changes
Feb 10, 2026
Contributor
meaghanlewis
left a comment
There was a problem hiding this comment.
These changes LGTM.
gewarren
commented
Feb 10, 2026
docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritycritical.md
Show resolved
Hide resolved
…amicmethod-issecuritycritical.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move remarks > 15 lines to conceptual docs repo.
Contributes to dotnet/dotnet-api-docs#10722.
Internal previews