How C# compiler works?
In this article we'll discuss how C# compilation works.
Firstly, we need to create the .cs file containing regular C# code.
Then, we use the compiler to create .exe file containing IL (intermediate language) code.
The IL code runs inside of the CLR (common language runtime).
The CLR uses JIT (just in time) compilation to dynamically translate the currently used portions of IL code into native code.