C# Tutorials - Herong's Tutorial Examples - Version 3.30, by Dr. Herong Yang
.NET Intermediate Language Disassembler
This section provides a tutorial example on how to use the .NET Intermediate Language disassembler to open and disassemble a CLR based Portable Executable files.
As described in the previous section, the Intermediate Language bytecode generated from .NET C# compiler is stored in a PE (Portable Executable) format.
If you want to see the bytecode disassembled into the source code format in Intermediate Language, you need to use find a .NET IL (Intermediate Language) disassembler.
Fortunately, .NET Framework 2.0 SDK provides a simple .NET IL Disassembler located at "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\ildasm.exe"
1. Double ildasm.exe in the Windows Explorer to run .NET IL Disassembler. You will see a simple ILDASM windows showing up.
2. Click "File" > "Open" in the menu and select "C:\herong\HelloCLR.exe".
You will see the bytecode file opened and disassembled
as shown in the picture below:
Note that .NET IL Disassembler can only be used to open CLR based PE files. It will not open any other types of .exe files.
See next sections for more tutorial examples on using the .NET IL Disassembler.
Last update: 2010.
Table of Contents