C # to compile MSIL code

Does the Microsoft C # compiler (CSC.exe) have the ability to output intermediate language files? Kind of like -S switch in GCC?

+4
source share
2 answers

You can use ildasm.exe to extract the IL from the assembly compiled by csc.exe.

+9
source

Your final executables and DLLs are stored in IL.

To find out what I mean, download .NET Reflector , open one of your DLLs or executables, and switch the language to IL. It will also switch to translating IL to C # for you.

+6
source

All Articles