❔ C# native aot reflections

Does runtime reflections work at all in native aot? Or does it work but with some limitations?
4 Replies
Henkypenky
Henkypenky2y ago
it will never work, native aot is compiles to native code, there is not JIT, so you will have a bunch of instructions, for what it was compiled for, example x86
reflectronic
reflectronic2y ago
System.Reflection.Emit doesn't work, yes System.Reflection works almost entirely without issue the biggest limitation on that is that you need to make sure that your reflection is trimmable
Henkypenky
Henkypenky2y ago
thanks reflectronic, this was a bit out of my scope, still researching it
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server