2
Reply

NET and C# interview questions: How to view a .NET assembly?

Shivprasad Koirala

Shivprasad Koirala

Jul 01, 2011
11.2k
0

    It's nice article and really help to me. Anyone want more number of .Net interview Question and Answer. please click on the following link. .Net http://www.tutorialslife.com/search/label/C%23%20Interview SQL Server http://www.tutorialslife.com/search/label/SQL%20Server%20InterviewOnce again thank you very much.

    Nilamani Bhanja
    December 06, 2017
    0

    Answer:
     

    When coming to understand the internals, nothing can beat ILDASM. ILDASM converts the whole ‘exe’ or ‘dll’ in to IL code. To run ILDASM you have to go to ‘C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin’. Note that we had v1.1 you have to probably change it depending on the type of framework version you have.

    If you run IDASM.EXE from the path you will be popped with the IDASM exe program as shown in figure. Click on file and browse to the respective directory for the DLL whose assembly you want to view. After you select the DLL you will be popped with a tree view details of the DLL as shown in figure ILDASM. On double clicking on manifest, you will be able to view details of assembly, internal IL code etc as shown in the figure.

    Note: - The version number are in the manifest itself which is defined with the DLL or EXE thus making deployment much easier as compared to COM where the information was stored in registry. Note the version information in Figure Manifest view.

    You can expand the tree for detail information regarding the DLL like methods, properties, functions etc.

    And once you open the Manifest you will be able to see the inner details as shown in the following picture: -

    Following is the video which shows that how the questions are asked C# and .NET interviews.


     


     

    Shivprasad Koirala
    July 01, 2011
    0