Home > DeveloperSection > Interviews > what is meta data in MSIL?

Posted on    October-20-2010 12:00 AM

 Assembly Assembly 
Ratings:
 2 Answer(s)
  978  View(s)
Rate this:

Pushpendra Singh

Total Post:241

Points:1205
Posted on    October-30-2010 12:00 AM

When a compiler produces MSIL, it also produces metadata. Metadata describes the types in your code, including the definition of each type, the signatures of each type's members, the members that your code references, and other data that the runtime uses at execution time. The MSIL and metadata are contained in a portable executable (PE) file that is based on and extends the published Microsoft PE and common object file format (COFF) used historically for executable content. This file format, which accommodates MSIL or native code as well as metadata, enables the operating system to recognize common language runtime images. The presence of metadata in the file along with the MSIL enables your code to describe itself, which means that there is no need for type libraries or Interface Definition Language (IDL). The runtime locates and extracts the metadata from the file as needed during execution.


hanmandlu vasani

Total Post:30

Points:150
Posted on    April-11-2014 12:00 AM

Metadata is binary information describing your program that is stored either in a common language runtime portable executable (PE) file or in memory.
When you compile your code into a PE file, metadata is inserted into one portion of the file, and your code is converted to Microsoft intermediate language (MSIL) and inserted into another portion of the file.
When a compiler produces MSIL, it also produces Metadata

 


Don't want to miss updates? Please click the below button!

Follow MindStick