Exploring Assemblies with the Ildasm Utility

The .NET SDK ships with a built-in intermediate language disassembling utility program (ildasm.exe) that allows you to investigate the contents of any assembly in a simple, user-friendly GUI. This straightforward program gives you an overview of the namespaces, types, and type members of an assembly of your choice, along with the ability to scrutinize its intermediate language instructions and metadata.

You can start the ildasm application by typing the following after the command prompt:

ildasm<enter>

You should then see an empty window appear called ILDASM. To choose the EXE or DLL assembly you want to inspect, click Open on the File menu. Use the File Open dialog box to navigate to the assembly ...

Get C# Primer Plus 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.