Skip to content

Merge main into live#12618

Merged
gewarren merged 2 commits into
livefrom
main
May 13, 2026
Merged

Merge main into live#12618
gewarren merged 2 commits into
livefrom
main

Conversation

@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Please don't squash-merge this PR.

…12616)

* Fix MethodBase.GetGenericArguments docs for .NET 11 ConstructorInfo behavior

MethodBase.GetGenericArguments docs claim that the method throws NotSupportedException when invoked on a ConstructorInfo. As of .NET 11, ConstructorInfo overrides this method to return an empty array (dotnet/runtime commit 6f0b75bf277, fixes #128041).

Update the remarks and exception text to describe both behaviors: .NET Framework and .NET 5-10 throw on a ConstructorInfo; .NET 11+ returns an empty array.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Jan Kotas <jkotas@microsoft.com>

* Apply suggestion from @jkotas

---------

Co-authored-by: Max Charlamb <maxcharlamb@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
@github-actions github-actions Bot added the area-Meta Concerns something that extends across runtime area boundaries, for example, IDisposable. label May 13, 2026
@gewarren gewarren merged commit 99a4b3b into live May 13, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Meta Concerns something that extends across runtime area boundaries, for example, IDisposable. :octocat: auto-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants