MSIL Disassembler (Ildasm.exe)

After build before my articles we have HTTPHeader.exe and how to see its metadata and disassembled, will describe as below:::

You can run Ildasm.exe over an.exe or .dll file to determine whether the file is managed. If the file is not managed, the tool displays a message stating that the file has no valid common language runtime header and cannot be disassembled. If the file is managed, the tool runs successfully.

The following command disassembles the file HTTPHeader.exe and stores the resulting MSIL Assembler text in the file HTTPHeader.il.

ildasm HTTPHeader.exe
ildasm HTTPHeader.exe /output:HTTPHeader.il
The following command disassembles the file HTTPHeader.exe and displays the resulting MSIL Assembler text to the console window.
In the previous example, there could be several MyMethod methods with different signatures. The following command disassembles the method MyMethod with the return type of void and the parameters int32 and System.String.
ildasm /item:”MyClass::HTTPHeader(void(int32,class System.String))” HTTPHeader.exe /text

ildasm HTTPHeader.exe

~ by ttdoanst on August 10, 2007.

Leave a Reply