|
Answer» The different parts of an assembly are: The different parts of an assembly are: - Manifest – Every static or dynamic assembly holds a data collection that gives details about how the elements in the assembly relate to each other. An assembly manifest consists of complete metadata required to specify version requirements and security identity of an assembly, and also the metadata required for defining the assembly scope and resolving references to classes and resources.
The assembly manifest will be stored in either a standalone PE(Portable Executable) file that holds only assembly manifest information, or in a PE file (a .exe or .dll) with MSIL(Microsoft intermediate language) code. - Type Metadata – Metadata gives you additional information such as types, type names, method names, ETC about the contents of an assembly. Metadata will be automatically generated by the Compilers from the source files and the compiler will EMBED this metadata within target OUTPUT files like .exe, .dll, or a .netmodule(in the case of multi-module assembly).
- MSIL – Microsoft Intermediate Language(MSIL) is a code that implements the types. It includes instructions to load, store, initialize, and call the methods on objects. Along with this, it also includes instructions for control flow, DIRECT memory access, arithmetic and logical operations, exception handling, etc. This is generated by the compiler using one or more source code files. During the runtime, the JIT(Just In Time) compiler of CLR(Common Language Runtime) converts the MSIL code into native code to the Operating System.
- Resources – Resources can be a LIST of related files such as .bmp or .jpg files. These resources are static, which means they do not change during run time. Resources are not executable items.
|