Solved

About Assembly !

Posted on 2006-06-18
5
285 Views
Last Modified: 2010-04-23

Hi,

I know that every assembly consists of the following information:

1. MSIL
2. Resources
3. Meta-data

Can you please let me know, how can i see this information for an assembly ? Let us say my assembly is a EXE created by windows application.

Thanks,
Kishore
0
Comment
Question by:kishore_peddi
5 Comments
 
LVL 7

Expert Comment

by:pradeepsudharsan
ID: 16931850
0
 
LVL 28

Accepted Solution

by:
iboutchkine earned 500 total points
ID: 16934142
Assemblies contain 4 elements:
1.Exe file
2.MSIL - MS intermediate language. MSIL code is your program code compiled into language that the common
            language runtime understands
3.Metadata - information about types, methods and other elements defined and referenced in the code
4.Manifest - includes name and version info, list of files in assembly, security info etc

The metadata that is stored in the components is binary, and contains all types, members,
and references in that file or assembly. The metadata is compiled into the PE
file, but when the file is used at runtime, the metadata is moved into memory so that
it can be accessed more quickly.

Metadata included into each managed module completely describes each type defined in the module:
name, public memebers, signature of each distinct method.
Metadata also records the information about every type that this module uses.

Metadata is a superset of type libraries used under COM with the important differrence thst you
cannot  separate IL from its metadata.
Metadata makes  a managed module self describing.

Manifest (Assembly Meta Data)
The manifest makes an assembly self describing and can be viewed with the IL Disassembler - Intermediate
Language Disassembler. The IL Disassembler (Ildasm.exe) is included in the .NET Framework SDK and runs
from a command line.

0
 
LVL 14

Expert Comment

by:ptakja
ID: 16939480
I think you need to run the ILDASM.exe from the .NET Command Window, not the standard cmd window.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now