Compilation Process of a C# Program

The C# compiler compiles the C# source code into the module, which is finally converted into the assembly. The assembly contains the Intermediate Language (IL) code along with the metadata information about the assembly.

The common language runtime (CLR) works with the assembly. It loads the assembly and converts it into the native code to execute the assembly.

Then this native code is executed by the Operating system and the output will shows according to your requirement.

Image1.png