About

Monday, September 16, 2019

CLR : Common Language Runtime 


The Runtime Environment of .NET Framework is Called Common Language Runtime.  It manages the execution of Managed Code (.NET Programs). 

CLR uses a just-in-time (JIT) compiler which converts the compiled code of .NET into Native Code.

Example : 

Language Compilers (e.g. C#, VB.Net, J#) convert the .NET Program Code to Microsoft Intermediate Language (MSIL) and this is further converted to Native Code by JIT Compiler of CLR.



Functionality  Of CLR

CLR provides many functionality like it loads and executes the code, manages the memory, converts the MSIL code to native code, and handles the exception.

CLR will support below functionality:

  • Memory Management
  • Code Access security
  • Garbage Collection
  • JIT Compilation
  • Thread Support
  • Debug Engine
  • Exception Handling 


Conclusion :  This tutorial will teach you how CLR works in dot net frame functionality.







Dot Net Introduction

Dot Net is a software framework which is designed and developed by Microsoft 
Dot Net is a framework and it is development platform, it will support more then one programming language to run/execute applications.

It will support more then 24 programming languages 

Example : 
1. C#
2. VB.net
3. F#
4 etc..

Dot net framework architecture 


1. C# : 

  • NET isn't just a library, but also a runtime for executing applications.
  • The knowledge of C# implies some knowledge of .NET (because the C# object model corresponds to the .NET object model and you can do something interesting in C# just by using .NET libraries). The opposite isn't necessarily true as you can use other languages to write .NET applications
  • One of the best program language and very easy to learn development functionality.This is very user/developer  friendly language.  

2. CLS( Common language specification) : 


CLS stands for common language specification and it is a subset of CTS(Common type system). it defines a set of rules and restrictions that every language must follow which runs under the dot net framework. the language which follow these set of rules are said to be CLS complaint. 
Example : 
if we consider about C# and etc... languages, in each statement end with semicolon.

C# program : 
static void Main(string[] args)
{
            Console.WriteLine("Hello Prasad KM");
            Console.Read();
}

But in VB.Net each statement should not end with semicolon(;)

3. CTS(Common type system):

Common type system describe the datatypes that can be used by managed code. CTS define how these types are declared. Used and managed in the runtime . cross-language integration type safety and high performance code execution 

Example :  Int32 VariableName = 0;




Conclusion :  
1. Dot net framework is common developer platform, it will support more then 14 languages.
2. CLS and CTS is very important for to understand dot net framework architecture functionality 

Summary : This is completely basic knowledge for to understand dot net functionality.

Please add your comments. thank you.