C# Tutorials - Herong's Tutorial Examples - v3.32, by 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.
Table of Contents
Logical Expressions and Conditional Statements
Visual C# 2010 Express Edition
►C# Compiler and Intermediate Language
Compiling and Running C# Programs
Compilation - Converting Source Code to Bytecode
►.NET Intermediate Language Disassembler
CLR Based PE (Portable Executable) Files
Disassembling Intermediate Language Bytecode
Assembling Intermediate Language Source Code
Compiling C# Source Code Files
MSBuild - Microsoft Build Engine
System.Diagnostics.FileVersionInfo Class
WPF - Windows Presentation Foundation