Get MSIL from Assembly?


Is it possible to usefully extract MSIL from an Assembly object without loading the type information?

I have a simple application that takes a string and attempts to dynamically create a method for making very fast calculations, but I want to avoid loading assembly/type information by using the CodeCompileUnit to compile a C# code string, extract the MSIL from the compiled assembly, and emitting the MSIL into a DynamicMethod. If this is possible.

Have a look at Mono.Cecil which helps you to read/modify/create assembly without loading them.