0% found this document useful (0 votes)
61 views28 pages

Net Architecture

.NET is a development framework created by Microsoft that includes a programming model and runtime environment. It allows developers to create various applications like web, desktop, mobile, and web services using C# and other .NET languages. The .NET framework includes a common language runtime, class libraries, and development tools like Visual Studio.

Uploaded by

Sonam Pandey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views28 pages

Net Architecture

.NET is a development framework created by Microsoft that includes a programming model and runtime environment. It allows developers to create various applications like web, desktop, mobile, and web services using C# and other .NET languages. The .NET framework includes a common language runtime, class libraries, and development tools like Visual Studio.

Uploaded by

Sonam Pandey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 28

.

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,

Library Framework Class Libraries ( FCL )

Common
Language
Runtime Common Language Runtime ( Execution Engine )
Common Language Runtime (CLR)

It is a program execution engine that loads and executes the program. It


converts the program into native code. It acts as an interface between the
framework and operating system.
• Suppose we have written a C# program and save it in a file.

• 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)

Main components of CLR:

1. Common Language Specification (CLS)


2. Common Type System (CTS)
3. Garbage Collection (GC)
4. Just In – Time Compiler (JIT)
• Common Language Specification (CLS) : It is responsible for converting the different .NET
programming language syntactical rules and regulations into CLR understandable format.
Basically, it provides the Language Interoperability.

• 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.

2> Shared Assemblies - An assembly that is used by several programmes is referred to


as a shared assembly. It is typically found in the Global Assembly Cache (GAC) or a
common directory. Multiple applications are supposed to share a shared assembly.

3> Satellite Assemblies - An assembly used to store regional resources is referred to as


a Satellite Assembly. It is typically found in a subdirectory of the directory for the
application or a subdirectory of the directory for the Shared Assembly. Localized
resources like strings, pictures, and audio files are kept in satellite assemblies.

You might also like