What is CLR

CLR is the Runtime environment of .Net Framework which is basically known as Common Language Runtime.

The code which gets executed using CLR is called managed code.

CLR starts executing the managed code after the code which an user has developed has been compiled.

Any source code which we develop using C# or some other language which .net framework supports needs to be compiled first. Below are the steps through which compilation takes place.

1. First of all the code which has been written by a user gets compiled and converted to Microsoft Intermediate Language(IL).

2. Compilation of IL to platform-specific code by the CLR.

The above two steps of compilation are very important steps. Because IL(Microsoft Intermediate Language) provides many features of the .Net Framework.