.

Friday, 29 November 2013

Role of CLR in Dotnet Framework

2) CLR is also a common runtime environment for all .NET code irrespective of their programming language, because the compilers of .NET framework convert every source code into a common language known a MSIL
3) CLR also provide various services to execute processes, such as memory management service and security services, CLR performs various tasks to manage the execution process of .NET application.

Garbage Collection -> Garbage Collection is the major role of CLR, which prevents memory leaks during execution of program. The Garbage collector of CLR automatically determines the best time to free the memory, which is reserved by an object for execution .

Code Access Security -> Code Access Security(CAS) model is used in .NET framework to impose restrictions and security during execution of programs.