Net Architecture
Net Architecture
NET Architecture
Introduction of .NET
.NET
designed and developed by Microsoft and the first beta
version released in 2000.
The first version of the .Net framework was released in the year 2002
Goals and Applications
• Web Applications
• Windows Applications
• phone Applications
11 Programming Languages which are designed and developed by Microsoft
are:
• C#.NET
• VB.NET
• C++.NET
• J#.NET
• F#.NET
• JSCRIPT.NET
• WINDOWS POWERSHELL
• IRON RUBY
• IRON PYTHON
• C OMEGA
• ASML(Abstract State Machine Language)
IDE
Visual Studio is a very powerful Integrated Development Environment
(IDE) where we actually write our C# or .NET programs. It is popular
because it supports code editing, interface design, server management,
debugging, and performance analysis. We can download Visual
Studio for free.
.NET Architecture
Language WinForms, ADO.NET, ASP.NET,
Common
Language
Runtime Common Language Runtime ( Execution Engine )
Common Language Runtime (CLR)
• Language specific compiler compiles the source code into the MSIL(Microsoft Intermediate
Language) which is also know as the CIL(Common Intermediate Language) or IL(Intermediate
Language) along with its metadata.
• Metadata includes the all the types, actual implementation of each function of the program. MSIL
is machine independent code.
• Now CLR comes into existence. CLR provides the services and runtime environment to the MSIL
code. Internally CLR includes the JIT(Just-In-Time) compiler which converts the MSIL code to
machine code which further executed by CPU.
not Common Language Runtime (CLR)
• Common Type System (CTS) :Every programming language has its own data type system, so
CTS is responsible for understanding all the data type of system.
• Garbage Collection (GC): It is used to provide the Automatic Memory Management feature.
• Just In – Time Compiler (JIT) : It is responsible for converting the CIL(Common Intermediate
Language) into machine code or native code using the Common Language Runtime
environment.
Common Type System (CTS) :
Every programming language has its own data type
system, so CTS is responsible for understanding all
the data type of system.
Common Type System (CTS)
Just In – Time Compiler (JIT) :
It is responsible for converting the CIL(Common
Intermediate Language) into machine code or native
code using the Common Language Runtime
environment.
Garbage Collection (GC):
• It is used to provide the Automatic Memory
Management feature.
Generation of Garbage Collector :
• 0:- it is used for newely created obj.
• 1:- the obj which are left over the 0 gen are come
in the first gen.
• 2:-the obj whichnis left over the 1 gen prometed to
2 gen collection. and the gen are more time
consuming and larger size of the obj.
Assemblies :
• Assemblies are the fundamental units of deployment.
• All the dll and exe is the Assemblies .
Component of Assemblies are :
• Manifest
• Metadata
• MSIL
• Resource
.NET supports three kinds of assemblies:
• Private Assemblies.
• Shared Assemblies.
• Satellite Assemblies.
----------------------------------------------------------------
1> Private Assemblies - An Assembly that is solely used by one application is referred
to as a Private Assembly. It is typically found in the directory for the application or
a subdirectory of the directory for the programme. Private Assemblies are not
intended to be shared with other applications. They are used to store application-
specific code and resources.