Search code examples
c#.netintermediate-language

Intermediate code generated in visual studio


As why Intermediate code is needed is described in Stack Overflow post,my question is that,

Is the intermediate code saved in the solution ?

How can I view the whole IL generated ?

enter image description here

Reflector and the File Disassembler add-in from Denis Bauer. It actually produces source projects from assemblies, where Reflector on its own only displays the disassembled source and not Intermediate Code.


Solution

  • When you compile (such as by clicking F5) - an exe file is created in the bin folder inside your solution - that file is "written" in IL. As for how to see it - that part is covered in the "duplicate" - by using tools such as mentioned in CodeCoaster's comment above. (In ILSpy you'll have to choose ILinstead of C# or VB to show you the IL.)