O'Reilly logo

From Java to C#: A Developer's Guide by Heng Ngee Mok

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4.3. Disassembling an assembly file

VS .NET comes with a GUI-based disassembler tool which can be used to view the contents of the IL file. The IL disassembler can be really useful if you are really interested in understanding how things really work underneath, how different .NET compilers optimize their codes, and similar issues.

Fire up IL disassembler from the command prompt by typing:

c:\expt>ildasm HelloWorld.exe

Figure 4.4 shows a screenshot of the disassembler at work. This book does not go into IL specifics.

Figure 4.4. The IL disassembler tool shows the contents of the HelloWorld.exe assembly. The IL equivalent of the Main() method in HelloWorld.cs is shown here.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required