D.4 MSIL Disassembler (ildasm.exe)

This tool extracts the MSIL code from a PE file targeted for .NET Framework. The general syntax for this tool is:

Ildasm [options] PEFilename

Table D-4 shows some of the common uses of the disassembler.

Table D-4. Disassembler common uses




This includes references to original source lines.


The output goes to a file instead of in a GUI dialog box.


This shows original source lines as comments.


The output goes in a console window.


This shows metadata tokens of classes and members.