none
Introspect a c# class RRS feed

  • Question

  • I want to introspect the c# class in command line just like introspecting a java class by using the command  > "JAVAP"  class name(full path). Is there any way to do that? please help me.


    Tuesday, August 27, 2013 6:53 AM

Answers

  • Hi,

    I think Ildasm.exe (MSIL Disassembler) is what you need.

    The MSIL Disassembler is a companion tool to the MSIL Assembler (Ilasm.exe). Ildasm.exe takes a portable executable (PE) file that contains Microsoft intermediate language (MSIL) code and creates a text file suitable as input to Ilasm.exe.

    This tool is automatically installed with Visual Studio and with the Windows SDK. To run the tool, we recommend that you use the Visual Studio Command Prompt or the Windows SDK Command Prompt (CMD Shell). These utilities enable you to run the tool easily, without navigating to the installation folder. For more information, see Visual Studio and Windows SDK Command Prompts.

    If you have Visual Studio installed on your computer: On the taskbar, click Start, click All Programs, click Visual Studio, click Visual Studio Tools, and then click Visual Studio Command Prompt.

    -or-

    If you have the Windows SDK installed on your computer: On the taskbar, click Start, click All Programs, click the folder for the Windows SDK, and then click Command Prompt (or CMD Shell).

    At the command prompt, type the following:

    ildasm [options] [PEfilename] [options]

    You can have a look at the reference below

    http://msdn.microsoft.com/en-us/library/f7dy01k1(v=vs.100).aspx

    Regards,

    ZeTan


    ALL FOR ONE AND ONE FOR ALL.

    Tuesday, August 27, 2013 3:26 PM