CLR- CLR is the heart of the .Net framework and it does 4 primary important things-1. Garbage collection2. CAS (Code Access Security)3. CV (Code Verification)4. IL to Native translation.Ref :- http://www.codeproject.com/Articles/781096/What-is-IL-code-CLR-CTS-CLS-JIT
CLR is a execute engine in .net framework. It is a runtime environment. It take responsible to execute code to native code. it has some services:-1:- Memory management.2:-Providing metadata.3:-Type safety.4:-Managing exceptions and errors.5:-Compilation of IL into native executable code.
CLR is a heart of .Net Framework.RoleGarbage collection.Memory MgmtType Safety
CLR is a RunTime, CLR is used to run .net programs, we can say CLR is heart of .NET
As the others are correct, I'd like to add another reason why one may choose to implement a CLR project. Occasionally, there may be the desire to create a library in C# that you may want to expose to SQL Server. You can deploy a CLR project directly to SQL and, with the proper attributes, have all types of Stored Procedures and functions available in your SQL context. It can be useful, however now that DB Projects are shipping and the latest SQL Servers are so robust, they aren't as attractive as other options may be.
Common Language Runtime - It is the implementation of CLI. The core runtime engine in the Microsoft .NET Framework for executing applications. The common language runtime supplies managed code with services such as cross-language integration, code access security, object lifetime management, resouce management, type safety, pre-emptive threading, metadata services (type reflection), and debugging and profiling support. The ASP.NET Framework and Internet Explorer are examples of hosting CLR.
The full form of CLR is Common Language Runtime.A runtime is an environment in which programs are executed.CLR is a nothing but the runtime enviroment.CLR is the heart of .NET.It executes MSIL code.Another key feature of the .NET CLR is garbage collection.It is responsible for destroying objects which are no longer in use.The CLR's garbage collector checks the heap for unreferenced objects and frees the memory used by these objects.
2015© C# Corner. All contents are copyright of their authors.
C# Corner. All contents are copyright of their authors.