Overview of .NET Assemblies

| Page Views: 66

Overview of .NET Assemblies

.NET binaries takes the same file extensions as unmananged windows binaries.These binaries in the form of .dll or .exe. This applies to all .NET languages. Normally .NET binaries do not have platform-specific code, ratjer it contains platform-agnostic code. This code is called Intermediate Language(IL) code.

IL code can also be called MSIL(Microsoft Intermediate Language) or CIL(Common Intermediate Language). All these describe the same instructon set. The resulting blob from the compilation of .NET program is what is called an assembly. This blob is in the form of :

  • .dll or
  • .exe

Assemblies comprise CIL code. CIL code are not compiled to platform specific instructions until necessary. This is until the point when a block of CIL instructions is referenced for use by the .NET runtime.
If you come from Java world then this is the same as Java Bytecode atleast conceptually.

However, assemblies don't just contain instructions. They also contain metadata.

Roles of the Metadata.

The metadata :

  • Describes the characteristics of the types existing within that binary. These characteristics of types comprise:

    • Base Class of a type.
    • Interfaces imlemented.
    • Members supported by a type.
  • Describes the assemblies. This metadata that describes assemblies is termed as the manifest.The manifest contains:

    • Currents Assembly version.
    • Culture Information
    • Externally Referenced assemblies.

How do You Feel after reading this?

According to scientists, we humans have 8 primary innate emotions: joy, acceptance, fear, surprise, sadness, disgust, anger, and anticipation. Feel free to tell us how you feel about this article using these emotes or via the comment section.

About Me.

After completing his Software Engineering bachelors program, Oclemy(Clement Ochieng) these days is a man of two lives. At day he works for a startup in Nairobi, Kenya. At night he works tirelessly on building ProgrammingWizards TV, a tv channel for student coders and this website to help share the source code. In between he practices Meditation and Self actualization to help him keep balance. He also likes going for long solo walks to connect more with nature.




Recommendations


What do You Think


Previous Post Next Post