16.1 Examining Common Ground with ILDASM

You don’t usually have to worry about IL, but from time to time you may want to know exactly what the C# or Visual Basic compiler is doing with the code it compiles, or see how Microsoft implemented some of the .NET Framework assemblies. This is where the IL Disassembler (ILDASM) comes in. It takes a .NET assembly and displays the generated IL in a human-readable format.

ILDASM at a Glance

Tool

ILDASM

Versions covered

1.1.4322.573 (.NET 1.1)

2.0.50727.42 (.NET 2.0)

Home page

http://msdn.microsoft.com/netframework/ (included with the .NET SDK and Visual Studio)

Power Tools page

http://www.windevpowertools.com/tools/91

Summary

A tool that enables you to examine the IL code generated by .NET compilers

License type

Microsoft EULA (part of .NET SDKs)

Online resources

Forums, MSDN Knowledge Base

Supported Frameworks

.NET 1.1, 2.0.

Related tools in this book

Reflector, DILE

Getting Started

ILDASM is included with the .NET SDK and Visual Studio 2003 and 2005. There are two convenient places to set it up for .NET development: on the Send To menu and inside Visual Studio.

Adding ILDASM to your Send To menu

Adding ILDASM to your Send To menu will enable you to quickly view the IL for any assembly from inside Windows Explorer. First, find ILDASM.EXE. Its location will depend on which version of Visual Studio you have installed. If you have Visual Studio 2003, the default location ...

Get Windows Developer Power Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.