Icemanind
Icemanind

Reputation: 48736

C# compiling to MSIL code

Does the Microsoft C# compiler (CSC.exe) have an option to output the Intermediate Language files? Kind of like the -S switch does in GCC?

Upvotes: 4

Views: 2054

Answers (2)

GBegen
GBegen

Reputation: 6157

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

Upvotes: 9

Will Eddins
Will Eddins

Reputation: 13907

Your final executables and DLLs are stored in IL.

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

Upvotes: 6

Related Questions