-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add support to process assemblies with generics <T> #183
base: main
Are you sure you want to change the base?
Conversation
- Update dump layout to make it closer to ILDASM. - nF tokens are now used along with real tokens. - Strings are now output. - Destination args are now output. - Inline types are now output. - IL offsets are now output. - Add new enums for nF Metadata tokens, encoded inline types and PE tables. - Add unit tests.
- Add member refs table. - Add code to init refs.
- Fix several tokens output. - Fix TypeSpec output.
- Need to have all the others properly filled in order to get parameters types.
- Add crawler to find generic parameter type. - Generic param PE record now includes parameter type.
- Add extension to encode typeRef. - Add helper class to encode/decode type tokens. - Rework dumper to make use of these.
Unit tests running nanoCLR failed as expected as the nanoCLR is not the correct version. |
private byte[] GetSignature(Collection<GenericParameter> genericParameters) | ||
{ | ||
using (var buffer = new MemoryStream()) | ||
using (var writer = new BinaryWriter(buffer)) // Only Write(Byte) will be used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minimal: rather than the 2 using in 2 lines, maybe use the brackets as well? (super minimal)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was using this patter as it's the "new" one instead of the tradicional with brackets... isn't this correct?
- Add mention in README.
dummyMirror1 = anotherClass.DummyProperty; | ||
_ = anotherClass.DummyProperty; | ||
|
||
Console.WriteLine($"Accessed property on class: {dummyMirror1}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same line right after
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple of comments, overall looks great! I did revie the native part on the nf-interpreter!
Description
Motivation and Context
How Has This Been Tested?
Screenshots
Types of changes
Checklist:
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Chores