SlideShare a Scribd company logo
A Ray Of Hope
PK
Irru Pychukar
Chukar , Baramulla
Jammu And Kashmir
BCA | G.D.C Boys Baramulla
M.Sc IT | Desh Bhagat University
.NET FramWork And
Architecture
+91 9596 296
421
 NET Framework
 Basic Architecture And Component Stack
 Common Language Runtime (CLR)
 Common Language Specification (CLS)
 Common Type System (CTS)
 Garbage Collection (GC)
 Just In – Time Compiler (JIT)
.NET Framwork And Components
NET Framework
 Definition: A programming infrastructure created by
Microsoft for building, deploying, and running applications
and services that use .NET technologies, such as desktop
applications and Web services.
 The .Net framework is a software development platform
developed by Microsoft. The framework was meant to create
applications, which would run on the Windows Platform.
 It is used to develop Form-based applications, Web-based
applications and Web services.
 There is a variety of programming languages available on the
.Net platform, VB.Net and C# being the most common ones
are . It is used to build applications for Windows, phone, web
etc. It provides a lot of functionalities and also supports
industry standards.
.Net Framework Architecture
 The basic architecture of the .Net framework is as
shown below.
Architecture
Common Language Runtime (CLR)
 CLR is the basic and Virtual Machine component of the
.NET Framework. It is the run-time enviornment in the
.NET Framework that runs the codes and helps in
making the development process easier by providing the
various services. Basically, it is responsible for managing
the execution of .NET programs regardless of any .NET
programming language. Internally, CLR implements the
VES(Virtual Execution System) which is defined in the
Microsoft’s implementation of the CLI(Common
Language Infrastructure).
The code that runs under the Common Language
Runtime is termed as the Managed Code. In other
words, you can say that CLR provides a managed
execution enviornment for the .NET programs by
Continue….
 The Common Language Runtime (CLR), the virtual machine
component of Microsoft's .NET framework, manages the execution
of .NET programs. Just-in-time compilation converts the managed
code (compiled intermediate language code), into machine
instructions which are then executed on the CPU of the computer.
The CLR provides additional services including
 memory management,
 type safety,
 exception handling,
 garbage collection,
 security and thread management.
 All programs written for the .NET framework, regardless of
programming language, are executed by the CLR. All versions of
the .NET framework include CLR
Continue….
 Below diagram illustrate that how CLR is associated
with the operating system/hardware along with the
class libraries. Here, runtime is actually CLR.
Role of CLR in the execution of a C# program…
 Suppose you have written a C# program and save it in a file which is
known as the Source Code.
 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. CLR also uses the .NET
Framework class libraries.
 Metadata provides the information about the programming language,
environment, version, and class libraries to the CLR by which CLR
handles the MSIL code. As CLR is common so it allows an instance of
a class that written in a different languague to call a method of the
class which written in another langauge.
Continue….
Continue CLR
 As the word specify Common which means CLR
provides a common runtime or execution
environment as there are more than 60 .NET
programming languages.
 Main componenets of CLR:
 Common Language Specification (CLS)
 Common Type System (CTS)
 Garbage Collection (GC)
 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. Language
Interoperability means to provide the execution support to other
programming languages also in .NET framework.
 Language Interoperability can be achieved in two ways :
 Managed Code and Unmanaged Code.
 Managed Code: The MSIL code which is managed by the CLR is known
as the Managed Code. For managed code CLR provides three .NET
facilities:
 CAS(Code Access Security)
 Exception Handling Automatic
 Memory Management.
 Unmanaged Code: Before .NET development the programming language
like .COM Components & Win32 API do not generate the MSIL code. So
these are not managed by CLR rather managed by Operating System which
is called unmanaged code.
Common Type System (CTS)
 Every programming language has its own data type system, so
CTS is responsible for the understanding all the data type
system of .NET programming languages and converting them
into CLR understandable format which will be a common
format.
 There are 2 Types of CTS that every .NET programming
language have :
 Value Types: Value Types will directly store the value
directly into the memory location. These types work with
stack mechanism only. CLR allots memory for these at
Compile Time.
 Reference Types: Reference Types will contain a memory
address of value because the reference types won’t store the
variable value directly in memory. These types work with
Heap mechanism. CLR allots memory for these at Runtime
Garbage Collector
 It is used to provide the Automatic Memory
Management feature. Suppose if there is no garbage
collector then programmers have to write the
memory management codes which will be a kind of
overhead on programmers.
JIT(Just In Time Compiler)
 It is responsible for converting the CIL(Common
Intermediate Language ) into machine code or native
code using the Common Language Runtime
environment.
Benefits of CLR
 It improves the performance by providing a richly interact between programs
at the run time.
 Enhance portability by removing the need of recompiling a program on any
operating system that support it.
 Security also increases as it analyze the MSIl instructions whether they are
safe or unsafe. Also, the use of delegates in place of function pointers enhance
the type safety and security.
 Support automatic memory managment with the help of Garbage Collector.
 Provides cross language integration because CTS inside CLR provides a
common standard that activate the different languages to extend and share
each other’s libraries.
 Provides support to use the components that developed in other .NET
programming languages.
 Provide language, platform, and architecture independency.
 It allows the creation of the scalable and multithreaded applications in a easier
way as developer has no need to think about the memory management and
security isssues.
Microsoft Intermediate Language (MSIL)
 .NET programming language (C#, VB.NET, J# etc.) does not compile into executable code; instead
it compiles into an intermediate code called Microsoft Intermediate Language (MSIL). As a
programmer one need not worry about the syntax of MSIL - since our source code in automatically
converted to MSIL. The MSIL code is then send to the CLR (Common Language Runtime) that
converts the code to machine language which is then run on the host machine.
 Common Intermediate Language (CIL), formerly called Microsoft Intermediate
Language (MSIL), is the lowest-level human-readable programming language defined by the
Common Language Infrastructure (CLI) specification and is used by the .NET Framework, .NET
Core, and Mono. Languages which target a CLI-compatible runtime environment compile to CIL,
which is assembled into an object code that has a bytecode-style format. CIL is an object-oriented
assembly language, and is entirely stack-based. Its bytecode is translated into native code or—most
commonly—executed by a virtual machine.
 The execution process looks like this:
 Source code is converted to CIL i.e. Common Intermediate Language, which is the CLI's equivalent
to assembly language for a CPU.
 CIL is then assembled into a form of so-called bytecode and a CLI assembly is created.
 Upon execution of a CIL assembly, its code is passed through the runtime's JIT compiler to generate
native code. Ahead-of-time compilation may also be used, which eliminates this step, but at the cost
of executable-file portability.
 The computer's processor executes the native code.
 MSIL is similar to Java Byte code. A Java program is compiled into Java Byte code (the .class file)
by a Java compiler, the class file is then sent to JVM which converts it into the host machine
language.
Irshad Ahmad Dar
148 | Chukar | Kunzar | Baramulla, | J&K
+91 7006 758 559 || +91
9596 296 421ikchukar040@gmail.com
A Ray Of Hope PK
DO YOU HAVE ANY Q UERRY ?

More Related Content

What's hot

.Net Overview
.Net Overview.Net Overview
.Net Overview
Pankaj Rattan
 
Introductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka PinglikarIntroductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka Pinglikar
PriyankaPinglikar
 
Introduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutionsIntroduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutions
Quontra Solutions
 
Introduction to .NET by QuontraSolutions
Introduction to .NET by QuontraSolutionsIntroduction to .NET by QuontraSolutions
Introduction to .NET by QuontraSolutions
QUONTRASOLUTIONS
 
Overview of .Net Framework 4.5
Overview of .Net Framework 4.5Overview of .Net Framework 4.5
Overview of .Net Framework 4.5
Bhushan Mulmule
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
Kamlesh Makvana
 
Components of .NET Framework
Components of .NET FrameworkComponents of .NET Framework
Components of .NET Framework
Roshith S Pai
 
Modified.net overview
Modified.net overviewModified.net overview
Modified.net overviewFaisal Aziz
 
.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti
Naveen Kumar Veligeti
 
.Net overview
.Net overview.Net overview
.Net overviewmadydud
 
1 get started with c#
1   get started with c#1   get started with c#
1 get started with c#Tuan Ngo
 
Introduction to ,NET Framework
Introduction to ,NET FrameworkIntroduction to ,NET Framework
Introduction to ,NET Framework
ANURAG SINGH
 
Net framework
Net frameworkNet framework
Net framework
Saiteja Kaparthi
 
Java vs .net (beginners)
Java vs .net (beginners)Java vs .net (beginners)
Java vs .net (beginners)
Ravi Vishwakarma
 
Csharp dot net
Csharp dot netCsharp dot net
Csharp dot net
Ekam Baram
 
Microsoft .NET Framework
Microsoft .NET FrameworkMicrosoft .NET Framework
Microsoft .NET Framework
chandrasekhardesireddi
 

What's hot (19)

.Net Overview
.Net Overview.Net Overview
.Net Overview
 
Introductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka PinglikarIntroductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka Pinglikar
 
Introduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutionsIntroduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutions
 
C Sharp Jn
C Sharp JnC Sharp Jn
C Sharp Jn
 
Introduction to .NET by QuontraSolutions
Introduction to .NET by QuontraSolutionsIntroduction to .NET by QuontraSolutions
Introduction to .NET by QuontraSolutions
 
Overview of .Net Framework 4.5
Overview of .Net Framework 4.5Overview of .Net Framework 4.5
Overview of .Net Framework 4.5
 
Inside.Net
Inside.NetInside.Net
Inside.Net
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 
Components of .NET Framework
Components of .NET FrameworkComponents of .NET Framework
Components of .NET Framework
 
1.0
1.01.0
1.0
 
Modified.net overview
Modified.net overviewModified.net overview
Modified.net overview
 
.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti
 
.Net overview
.Net overview.Net overview
.Net overview
 
1 get started with c#
1   get started with c#1   get started with c#
1 get started with c#
 
Introduction to ,NET Framework
Introduction to ,NET FrameworkIntroduction to ,NET Framework
Introduction to ,NET Framework
 
Net framework
Net frameworkNet framework
Net framework
 
Java vs .net (beginners)
Java vs .net (beginners)Java vs .net (beginners)
Java vs .net (beginners)
 
Csharp dot net
Csharp dot netCsharp dot net
Csharp dot net
 
Microsoft .NET Framework
Microsoft .NET FrameworkMicrosoft .NET Framework
Microsoft .NET Framework
 

Similar to .Net Framwork Architecture And components

election survey comapny in delhi|election survey company|election survey comp...
election survey comapny in delhi|election survey company|election survey comp...election survey comapny in delhi|election survey company|election survey comp...
election survey comapny in delhi|election survey company|election survey comp...
dnnindia
 
.Net overview|Introduction Of .net
.Net overview|Introduction Of .net.Net overview|Introduction Of .net
.Net overview|Introduction Of .net
pinky singh
 
Chapter1_Part1.pptx
Chapter1_Part1.pptxChapter1_Part1.pptx
Chapter1_Part1.pptx
RaajzKoirala
 
Chapter 1 introduction to .net
Chapter 1 introduction to .netChapter 1 introduction to .net
Chapter 1 introduction to .net
Rahul Bhoge
 
Dotnet1
Dotnet1Dotnet1
.NET Core, ASP.NET Core Course, Session 3
.NET Core, ASP.NET Core Course, Session 3.NET Core, ASP.NET Core Course, Session 3
.NET Core, ASP.NET Core Course, Session 3
aminmesbahi
 
Session2 (3)
Session2 (3)Session2 (3)
Session2 (3)
DrUjwala1
 
ASP.NET Session 1
ASP.NET Session 1ASP.NET Session 1
ASP.NET Session 1Sisir Ghosh
 
DotNet Framework
DotNet FrameworkDotNet Framework
DotNet Framework
Wani Zahoor
 
.Net framework
.Net framework.Net framework
.Net framework
Viv EK
 
Tutorial c#
Tutorial c#Tutorial c#
Tutorial c#
Mohammad Faizan
 
.Net platform an understanding
.Net platform an understanding.Net platform an understanding
.Net platform an understanding
Binu Bhasuran
 
1 what is microsoft .net framework
1 what is microsoft .net framework1 what is microsoft .net framework
1 what is microsoft .net framework
Islamia Univeristy Bahawalpur Bahawalnagar
 
.Net Framework
.Net Framework.Net Framework
.Net Framework
MohamadKrm
 
Presentation1
Presentation1Presentation1
Presentation1kpkcsc
 
Managed Code .NET
Managed Code .NETManaged Code .NET
Managed Code .NET
Mert Akcakaya
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net framework
Arun Prasad
 

Similar to .Net Framwork Architecture And components (20)

election survey comapny in delhi|election survey company|election survey comp...
election survey comapny in delhi|election survey company|election survey comp...election survey comapny in delhi|election survey company|election survey comp...
election survey comapny in delhi|election survey company|election survey comp...
 
.Net overview|Introduction Of .net
.Net overview|Introduction Of .net.Net overview|Introduction Of .net
.Net overview|Introduction Of .net
 
Chapter1_Part1.pptx
Chapter1_Part1.pptxChapter1_Part1.pptx
Chapter1_Part1.pptx
 
Chapter 1 introduction to .net
Chapter 1 introduction to .netChapter 1 introduction to .net
Chapter 1 introduction to .net
 
Dotnet1
Dotnet1Dotnet1
Dotnet1
 
C Sharp Jn
C Sharp JnC Sharp Jn
C Sharp Jn
 
.NET Core, ASP.NET Core Course, Session 3
.NET Core, ASP.NET Core Course, Session 3.NET Core, ASP.NET Core Course, Session 3
.NET Core, ASP.NET Core Course, Session 3
 
Introduction to .net
Introduction to .netIntroduction to .net
Introduction to .net
 
Session2 (3)
Session2 (3)Session2 (3)
Session2 (3)
 
ASP.NET Session 1
ASP.NET Session 1ASP.NET Session 1
ASP.NET Session 1
 
DotNet Framework
DotNet FrameworkDotNet Framework
DotNet Framework
 
.Net framework
.Net framework.Net framework
.Net framework
 
.Net slid
.Net slid.Net slid
.Net slid
 
Tutorial c#
Tutorial c#Tutorial c#
Tutorial c#
 
.Net platform an understanding
.Net platform an understanding.Net platform an understanding
.Net platform an understanding
 
1 what is microsoft .net framework
1 what is microsoft .net framework1 what is microsoft .net framework
1 what is microsoft .net framework
 
.Net Framework
.Net Framework.Net Framework
.Net Framework
 
Presentation1
Presentation1Presentation1
Presentation1
 
Managed Code .NET
Managed Code .NETManaged Code .NET
Managed Code .NET
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net framework
 

Recently uploaded

space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 

Recently uploaded (20)

space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 

.Net Framwork Architecture And components

  • 1. A Ray Of Hope PK Irru Pychukar Chukar , Baramulla Jammu And Kashmir BCA | G.D.C Boys Baramulla M.Sc IT | Desh Bhagat University .NET FramWork And Architecture +91 9596 296 421
  • 2.  NET Framework  Basic Architecture And Component Stack  Common Language Runtime (CLR)  Common Language Specification (CLS)  Common Type System (CTS)  Garbage Collection (GC)  Just In – Time Compiler (JIT) .NET Framwork And Components
  • 3. NET Framework  Definition: A programming infrastructure created by Microsoft for building, deploying, and running applications and services that use .NET technologies, such as desktop applications and Web services.  The .Net framework is a software development platform developed by Microsoft. The framework was meant to create applications, which would run on the Windows Platform.  It is used to develop Form-based applications, Web-based applications and Web services.  There is a variety of programming languages available on the .Net platform, VB.Net and C# being the most common ones are . It is used to build applications for Windows, phone, web etc. It provides a lot of functionalities and also supports industry standards.
  • 4. .Net Framework Architecture  The basic architecture of the .Net framework is as shown below.
  • 6. Common Language Runtime (CLR)  CLR is the basic and Virtual Machine component of the .NET Framework. It is the run-time enviornment in the .NET Framework that runs the codes and helps in making the development process easier by providing the various services. Basically, it is responsible for managing the execution of .NET programs regardless of any .NET programming language. Internally, CLR implements the VES(Virtual Execution System) which is defined in the Microsoft’s implementation of the CLI(Common Language Infrastructure). The code that runs under the Common Language Runtime is termed as the Managed Code. In other words, you can say that CLR provides a managed execution enviornment for the .NET programs by
  • 7. Continue….  The Common Language Runtime (CLR), the virtual machine component of Microsoft's .NET framework, manages the execution of .NET programs. Just-in-time compilation converts the managed code (compiled intermediate language code), into machine instructions which are then executed on the CPU of the computer. The CLR provides additional services including  memory management,  type safety,  exception handling,  garbage collection,  security and thread management.  All programs written for the .NET framework, regardless of programming language, are executed by the CLR. All versions of the .NET framework include CLR
  • 8. Continue….  Below diagram illustrate that how CLR is associated with the operating system/hardware along with the class libraries. Here, runtime is actually CLR.
  • 9. Role of CLR in the execution of a C# program…  Suppose you have written a C# program and save it in a file which is known as the Source Code.  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. CLR also uses the .NET Framework class libraries.  Metadata provides the information about the programming language, environment, version, and class libraries to the CLR by which CLR handles the MSIL code. As CLR is common so it allows an instance of a class that written in a different languague to call a method of the class which written in another langauge.
  • 11. Continue CLR  As the word specify Common which means CLR provides a common runtime or execution environment as there are more than 60 .NET programming languages.  Main componenets of CLR:  Common Language Specification (CLS)  Common Type System (CTS)  Garbage Collection (GC)  Just In – Time Compiler (JIT)
  • 12. 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. Language Interoperability means to provide the execution support to other programming languages also in .NET framework.  Language Interoperability can be achieved in two ways :  Managed Code and Unmanaged Code.  Managed Code: The MSIL code which is managed by the CLR is known as the Managed Code. For managed code CLR provides three .NET facilities:  CAS(Code Access Security)  Exception Handling Automatic  Memory Management.  Unmanaged Code: Before .NET development the programming language like .COM Components & Win32 API do not generate the MSIL code. So these are not managed by CLR rather managed by Operating System which is called unmanaged code.
  • 13. Common Type System (CTS)  Every programming language has its own data type system, so CTS is responsible for the understanding all the data type system of .NET programming languages and converting them into CLR understandable format which will be a common format.  There are 2 Types of CTS that every .NET programming language have :  Value Types: Value Types will directly store the value directly into the memory location. These types work with stack mechanism only. CLR allots memory for these at Compile Time.  Reference Types: Reference Types will contain a memory address of value because the reference types won’t store the variable value directly in memory. These types work with Heap mechanism. CLR allots memory for these at Runtime
  • 14. Garbage Collector  It is used to provide the Automatic Memory Management feature. Suppose if there is no garbage collector then programmers have to write the memory management codes which will be a kind of overhead on programmers.
  • 15. JIT(Just In Time Compiler)  It is responsible for converting the CIL(Common Intermediate Language ) into machine code or native code using the Common Language Runtime environment.
  • 16. Benefits of CLR  It improves the performance by providing a richly interact between programs at the run time.  Enhance portability by removing the need of recompiling a program on any operating system that support it.  Security also increases as it analyze the MSIl instructions whether they are safe or unsafe. Also, the use of delegates in place of function pointers enhance the type safety and security.  Support automatic memory managment with the help of Garbage Collector.  Provides cross language integration because CTS inside CLR provides a common standard that activate the different languages to extend and share each other’s libraries.  Provides support to use the components that developed in other .NET programming languages.  Provide language, platform, and architecture independency.  It allows the creation of the scalable and multithreaded applications in a easier way as developer has no need to think about the memory management and security isssues.
  • 17. Microsoft Intermediate Language (MSIL)  .NET programming language (C#, VB.NET, J# etc.) does not compile into executable code; instead it compiles into an intermediate code called Microsoft Intermediate Language (MSIL). As a programmer one need not worry about the syntax of MSIL - since our source code in automatically converted to MSIL. The MSIL code is then send to the CLR (Common Language Runtime) that converts the code to machine language which is then run on the host machine.  Common Intermediate Language (CIL), formerly called Microsoft Intermediate Language (MSIL), is the lowest-level human-readable programming language defined by the Common Language Infrastructure (CLI) specification and is used by the .NET Framework, .NET Core, and Mono. Languages which target a CLI-compatible runtime environment compile to CIL, which is assembled into an object code that has a bytecode-style format. CIL is an object-oriented assembly language, and is entirely stack-based. Its bytecode is translated into native code or—most commonly—executed by a virtual machine.  The execution process looks like this:  Source code is converted to CIL i.e. Common Intermediate Language, which is the CLI's equivalent to assembly language for a CPU.  CIL is then assembled into a form of so-called bytecode and a CLI assembly is created.  Upon execution of a CIL assembly, its code is passed through the runtime's JIT compiler to generate native code. Ahead-of-time compilation may also be used, which eliminates this step, but at the cost of executable-file portability.  The computer's processor executes the native code.  MSIL is similar to Java Byte code. A Java program is compiled into Java Byte code (the .class file) by a Java compiler, the class file is then sent to JVM which converts it into the host machine language.
  • 18. Irshad Ahmad Dar 148 | Chukar | Kunzar | Baramulla, | J&K +91 7006 758 559 || +91 9596 296 421ikchukar040@gmail.com A Ray Of Hope PK DO YOU HAVE ANY Q UERRY ?