Skip to content

Add support for .NET 8.0 and DynamicILInfo to DynamicMethodBodyReader#508

Merged
wtfsck merged 2 commits into
0xd4d:masterfrom
ElektroKill:dynamicmethod-reader-improvements
Jul 9, 2023
Merged

Add support for .NET 8.0 and DynamicILInfo to DynamicMethodBodyReader#508
wtfsck merged 2 commits into
0xd4d:masterfrom
ElektroKill:dynamicmethod-reader-improvements

Conversation

@ElektroKill
Copy link
Copy Markdown
Contributor

.NET 8 changed the following:

  • DynamicMethod.m_resolver ->DynamicMethod._resolver - This field is used by DynamicMethodBodyReader to retrieve the DynamicResolver instance.
  • ILGnerator became an abstract class and the actual implementation was moved to RuntimeILGenerator - MethodTableToTypeConverter accesses a private field in the ILGenerator implementation and needed to be updated to check RuntimeILGenerator

I've also added support for DynamicMethodBodyReader to consume dynamic methods created from a DynamicILInfo which were not jet used as part of an invocation or a delegate.

@wtfsck wtfsck merged commit c7de9fa into 0xd4d:master Jul 9, 2023
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