dnlib
dnlib copied to clipboard
Module to ModuleDefMD
Hello, now another question. How can I convert a module (System.Reflection.Module) to ModuleDefMD, or Assembly (System.Reflection.Assembly) to AssemblyDefMD?
I'm trying to take it from CompiledAssembly, this is example:
Module module = results.CompiledAssembly.GetModules()[0];
Did you try something like: ModuleDefMD.Load(typeof(int).Module)
Did you try something like:
ModuleDefMD.Load(typeof(int).Module)
Thanks, it works