Skip to content
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

Fix CecilILGenerator declare local throwing in .NET 9 #201

Merged
merged 2 commits into from
Nov 24, 2024

Conversation

zznty
Copy link
Contributor

@zznty zznty commented Nov 24, 2024

LocalBuilder was made opaque in .NET 9 and separated into RuntimeLocalBuilder type. This PR allows reflection access to lookup RuntimeLocalBuilder before falling back to just LocalBuilder. Also i added a unit test for that case.

Exception for reference.

System.MemberAccessException : Cannot create an instance of System.Reflection.Emit.LocalBuilder because it is an abstract class.

This comment has been minimized.

@nike4613 nike4613 merged commit 80b16bf into MonoMod:reorganize Nov 24, 2024
69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants