.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:
Intermediate Language Disassembler

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

 About This Book

 Introduction of C# (C Sharp)

 Data Type and Variables

 Logical Expressions and Conditional Statements

 Arrays and Loop Statements

 Data Type Features

 Floating-Point Data Types

 Passing Parameters to Methods

 Execution Environment Class

 Visual C# 2010 Express Edition

 Class Features

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

 Memory Usages of Processes

 Multithreading in C#

 Async Feature from C# 5

 System.IO.FileInfo Class

 System.Diagnostics.FileVersionInfo Class

 WPF - Windows Presentation Foundation

 Partial Classes and Partial Methods

 Outdated Tutorials


 Full Version in PDF/ePUB