.Net framework

The .Net framework is a development and execution environment that allows different programming languages and library to work together to create window based applications that are easier to build, manage, deploy and integrate with another new system. The framework is a software development platform for Microsoft.Net. it consists of

1. CLR (Common Language Runtime)

2. CTS (Common Type System)

3. CLS (Common Language Specification)

CLR (Common Language Runtime)
CLR is an important part of the of.Net framework. It is the infrastructure that executes the application and allows them to interact with the other part of the framework. CLR provides a no of services that are as follows

• Code management (loading & executing)

• Memory management

• Conversion of IL to native code

• Access to Metadata

• Exception handling

• Support for developer services

Component of CLR

• ClassLoader
Manage metadata in addition to the loading and layout of classes.

• MSIL to native compiler
Convert MSIL to native code with the help of JIT (Just in Time)

• Code manager
Manages code execution

• Garbage collector or GC
It provides automatic lifetime management of all of our objects.

• Security engine
It provides security i.e., based on the origin of the code and user.

• Debug engine
It allows us to debug our application and raise the execution of code.

• Exception manager
It provides structured exception handling

• Threat support
It provides classes and interfaces that enable multithread programming.
CTS (Common Type System)
The CTS defines how types are declared, used and mange in the runtime. The CTS is an important part of the runtime. It supports cross-language integration. The CTS perform the following function-

Establish a framework that enables cross-language, type safety, and high-performance code execution It provides an object-oriented model that supports the complete implementation of many programming languages.

CTS support two general categories of types

• Value type

• Reference type

Value type Built-in type (int, float, char), user-defined value type (array), enumeration, structure.

Reference type Class, interface, delegates
CLS (Common Language Specification)
CLS is the collection of rules and constraints that every language must follow. CLS is a set of basic language features that serve as a guide for library writer and compiler writer. It allows libraries to be fully usable from the only language supporting the CLS and for those languages to integrate with each other.
Syntax of program

using system;
using system.console;
namespace console application ;
class program
	static void main()