Home > DeveloperSection > Articles > CLR in .net framework

CLR in .net framework

0 Comment(s)
 4723  View(s)
Rate this:

CLR in .Net framework

The most important component of .NET Framework is CLR (Common Language Runtime). The purpose of the CLR is to provide a language- agnostic platform for application of five primary parts:-

1.       Common Type System (CTS).

2.       Common Language Specification (CLS).

3.       Common Intermediate Language (CIL) or Microsoft Intermediate Language (MSIL).

4.       Just in time Compiler (JIT).

5.       Virtual Execution System (VES).

The CLR manages memory, threat execution, and code execution softly verification, compilation (common concept) and other system services for managed code. The code that runs within the CLR runs in an encapsulation and managed environment, separate from other process on the machine.

The runtime enforce code compactness by implementing a strict type and code verification infrastructure called the CTS. CTS are a universal type system for .NET framework. In addition to defining all types the CTS also stipulates the rules that the CLR fallows with regard to application declaring and using these types in the world of .NET everything in the CTS is an object. In fact, not only is everything an object but even more importantly all object, implicitly derived from a single base class defined as part of  CTS. This base class called system object.

CLS ensures seamless inter operability between CLS complaint Language and class Libraries. Because the same .NET base class libraries shared between all programming languages. A developer can take his or her knowledge of this library with him as he or she migrates from language to language.  Thus run time accelerate development language of chaise yet take full advantage of runtime. Class library component written in other language other developers.

All .NET programs are compiled to an intermediate language MSIL files, rather than to native code which can be understood by the computers processor. This MSIL code is then compiler to native code either when the application is installed or when the application is run, which is then executed by the machine processor since managed code is neighbor interpreted, thus run time enhance performance finally the runtime can be hosted by high performance server side applications such as Microsoft SQL server and internet information services (IIS)

This infrastructure enables us to use managed code to write our business logic while still enjoying the superior performance of the industry’s best enterprise server that support runtime hosting.

CLR in .Net framework

NET Versions and CLR Versions






2.0, 3.0


2.0 SP1, 3.0 SP1, 3.5

3.5 SP1

2.0 SP2, 3.0 SP2, 3.5 SP1

The runtime provides the following benefits:

·         Performance improvements.

·         The ability to easily use components developed in other languages.

·         Extensible types provided by a class library.

·         Language features such as inheritance, interfaces, and overloading for object-oriented programming.

·         Support for explicit free threading that allows creation of multithreaded, scalable applications.

·         Support for structured exception handling.

·         Support for custom attributes.

·         Garbage collection.

·         Use of delegates instead of function pointers for increased type safety and security.

Don't want to miss updates? Please click the below button!

Follow MindStick