Posts

Showing posts from August, 2023

Exploring the Compilation of a C# Program

 Exploring the Compilation of a C# Program When the C # program  is compiled, the compiler converts the C# source code to an intermediary language called IL code. Imagine IL code as an universal language, comprehensible to any computer compatible with the .NET framework. It is also sometimes called as MSIL which stands for Microsoft intermediary language. The Role of IL Code IL code serves as the bridge between our abstract, high-level C# code and the low-level, machine-specific language that our computers understand. It's an essential step in making our programs adaptable across different environments. Assembling the IL Code The IL code is encapsulated within what is known as an "Assembly." This assembly acts as a container, housing not only the IL code itself but also crucial metadata about our program, such as its identity and version. Typically, assemblies carry the file extension ".dll" when they contain libraries and ".exe" when they're execu...