SlideShare uma empresa Scribd logo
1 de 19
UNIT 1
Chapter 2
.NET FRAMEWORK
.Net Framework
• .Net Framework is the heart of the microsoft
.NET
• .Net Framework provides the necessary
compile time and run time foundation to build
and run .NET based applications
Common language infrastructure
• Common Language Infrastructure (CLI)
enables an application program written in any
commonly-used programming languages to be
run on any operating system using a common
runtime program rather than a specific for
every language.
Common language infrastructure
CLI basic elements
1. Common Language Infrastructure (CLI)
2. Common Type System (CTS)
3. Common Language Specification (CLS)
4.Virtual Execution System (VES)
CLI basic elements
• The Common Type System (CTS): A set of data
types and operations that are shared by all CTS-
compliant programming languages.
• The Common Language Specification (CLS):The CLI
should conform with the set of base rules to which any
language targeting, since that language should
interoperate with other CLS-compliant languages. The
CLS rules define a subset of the Common Type System.
• The Virtual Execution System (VES)The VES loads and
executes CLI-compatible programs, using the metadata
to combine separately generated pieces of code at
runtime.
Relation
Common Type System(CTS)
• The common type system defines how types are declared, used,
and managed in the common language runtime, and is also an
important part of the runtime's support for cross-language
integration. The common type system performs the following
functions:
• Establishes a framework that helps enable cross-language
integration, type safety, and high-performance code execution.
• Provides an object-oriented model that supports the complete
implementation of many programming languages.
• Defines rules that languages must follow, which helps ensure that
objects written in different languages can interact with each other.
• Provides a library that contains the primitive data types (such
as Boolean, Byte, Char, Int32, and UInt64) used in application
development.
Common Language Specification(CLS)
CLS is set of rules to design any language to support .NET framework
MSIL(Microsoft Intermediate
Language)
• .NET programming language does not compile
into executable code instead it compiles into
an intermediate code
• MSIL code is then send to CLR that converts
the code to machine langaugae it run on host
machine.
• MSIL is similar to java byte code
Just in time (JIT) Compiler
• CPU Specific code that runs on the same
computer architecture as the JIT compiler.
• The CLR supplies a JIT compiler for each
supported CPU architecture, developers can
write a set of MSIL that can be JIT compiled
and run on computers with different
architectures.
Managed and Unmanaged code
• It is a code that written to target the services
of the common language runtime.
• All C#, Visual Basic .NET, and Jscript .NET code
is managed by default
• Visual Studio .NET C++ code is not managed
by default, but the compiler can produce
managed code.
Net Framework Architecture
• .Net Framework Architecture is a
programming model for the .Net platform that
provides an execution environment and
integration with various programming
languages for simple development and
deployment of various Windows and desktop
applications. It consists of class libraries and
reusable components.
.Net Framework Architecture
.NET Components
1. Common Language Runtime
The CLI has the following key features:
• Exception Handling
• Garbage Collection
• Working with Various programming languages
Exception Handling
• Exceptions are errors which occur when the
application is executed.Examples of
exceptions are:
• If an application tries to open a file on the
local machine, but the file is not present.
• If the application tries to fetch some records
from a database, but the connection to the
database is not valid.
Garbage Collection
• Garbage collection is the process of removing
unwanted resources when they are no longer
required.Examples of garbage collection are
• A File handle which is no longer required. If the
application has finished all operations on a file,
then the file handle may no longer be required.
• The database connection is no longer required. If
the application has finished all operations on a
database, then the database connection may no
longer be required.
Class Library
• A class library is a collection of methods and
functions that can be used for the core
purpose.
• For example, there is a class library with
methods to handle all file-level operations. So
there is a method which can be used to read
the text from a file. Similarly, there is a
method to write text to a file.
Languages
• WinForms
• ASP.Net
• ADO.Net

Mais conteúdo relacionado

Mais procurados

.Net framework
.Net framework.Net framework
.Net framework
Arun Pal
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net framework
Instantenigma
 
The .NET Platform - A Brief Overview
The .NET Platform - A Brief OverviewThe .NET Platform - A Brief Overview
The .NET Platform - A Brief Overview
Carlos Lopes
 
01 intro to programming in .net
01   intro to programming in .net01   intro to programming in .net
01 intro to programming in .net
Felisha Hosein
 

Mais procurados (20)

Introduction to .NET Programming
Introduction to .NET ProgrammingIntroduction to .NET Programming
Introduction to .NET Programming
 
.NET Standard - Introduction
.NET Standard - Introduction.NET Standard - Introduction
.NET Standard - Introduction
 
Net framework
Net frameworkNet framework
Net framework
 
.NET Standard - Under the Hood
.NET Standard - Under the Hood.NET Standard - Under the Hood
.NET Standard - Under the Hood
 
Introduction to VB.net
Introduction to VB.netIntroduction to VB.net
Introduction to VB.net
 
Evolution of .net frame work
Evolution of .net frame workEvolution of .net frame work
Evolution of .net frame work
 
Component of .net
Component of .netComponent of .net
Component of .net
 
srgoc dotnet_ppt
srgoc dotnet_pptsrgoc dotnet_ppt
srgoc dotnet_ppt
 
.NET Standard - NuGet Analysis
.NET Standard - NuGet Analysis.NET Standard - NuGet Analysis
.NET Standard - NuGet Analysis
 
.Net framework
.Net framework.Net framework
.Net framework
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net framework
 
1.0
1.01.0
1.0
 
4. features of .net
4. features of .net4. features of .net
4. features of .net
 
.NET Framework 4.0 – Changes & Benefits
.NET Framework 4.0 – Changes & Benefits .NET Framework 4.0 – Changes & Benefits
.NET Framework 4.0 – Changes & Benefits
 
.Net Overview
.Net Overview.Net Overview
.Net Overview
 
C# and dot net framework
C# and dot net frameworkC# and dot net framework
C# and dot net framework
 
The .NET Platform - A Brief Overview
The .NET Platform - A Brief OverviewThe .NET Platform - A Brief Overview
The .NET Platform - A Brief Overview
 
.Net framework
.Net framework.Net framework
.Net framework
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 
01 intro to programming in .net
01   intro to programming in .net01   intro to programming in .net
01 intro to programming in .net
 

Semelhante a .NET Framework

Modified.net overview
Modified.net overviewModified.net overview
Modified.net overview
Faisal Aziz
 
.Net overview
.Net overview.Net overview
.Net overview
madydud
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net framework
Faisal Aziz
 
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptxLearn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
GaytriMate
 

Semelhante a .NET Framework (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
 
.Net framework
.Net framework.Net framework
.Net framework
 
Modified.net overview
Modified.net overviewModified.net overview
Modified.net overview
 
Common language runtime clr
Common language runtime clrCommon language runtime clr
Common language runtime clr
 
VB IMPORTANT QUESTION
VB IMPORTANT QUESTIONVB IMPORTANT QUESTION
VB IMPORTANT QUESTION
 
.Net overview
.Net overview.Net overview
.Net overview
 
VB.Net-Introduction.ppt
VB.Net-Introduction.pptVB.Net-Introduction.ppt
VB.Net-Introduction.ppt
 
NETOverview1ppt.pptx
NETOverview1ppt.pptxNETOverview1ppt.pptx
NETOverview1ppt.pptx
 
NETOverview1.ppt
NETOverview1.pptNETOverview1.ppt
NETOverview1.ppt
 
.Net Introduction
.Net Introduction.Net Introduction
.Net Introduction
 
Chapter 1 introduction to .net
Chapter 1 introduction to .netChapter 1 introduction to .net
Chapter 1 introduction to .net
 
CS4443 - Modern Programming Language - I Lecture (1)
CS4443 - Modern Programming Language - I Lecture (1)CS4443 - Modern Programming Language - I Lecture (1)
CS4443 - Modern Programming Language - I Lecture (1)
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net framework
 
Chapter1_Part1.pptx
Chapter1_Part1.pptxChapter1_Part1.pptx
Chapter1_Part1.pptx
 
c#.pptx
c#.pptxc#.pptx
c#.pptx
 
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptxLearn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
 
.Net overview by cetpa
.Net overview by cetpa.Net overview by cetpa
.Net overview by cetpa
 
Net framework
Net frameworkNet framework
Net framework
 
.Net framework
.Net framework.Net framework
.Net framework
 

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Último (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 

.NET Framework

  • 2. .Net Framework • .Net Framework is the heart of the microsoft .NET • .Net Framework provides the necessary compile time and run time foundation to build and run .NET based applications
  • 3. Common language infrastructure • Common Language Infrastructure (CLI) enables an application program written in any commonly-used programming languages to be run on any operating system using a common runtime program rather than a specific for every language.
  • 5. CLI basic elements 1. Common Language Infrastructure (CLI) 2. Common Type System (CTS) 3. Common Language Specification (CLS) 4.Virtual Execution System (VES)
  • 6. CLI basic elements • The Common Type System (CTS): A set of data types and operations that are shared by all CTS- compliant programming languages. • The Common Language Specification (CLS):The CLI should conform with the set of base rules to which any language targeting, since that language should interoperate with other CLS-compliant languages. The CLS rules define a subset of the Common Type System. • The Virtual Execution System (VES)The VES loads and executes CLI-compatible programs, using the metadata to combine separately generated pieces of code at runtime.
  • 8. Common Type System(CTS) • The common type system defines how types are declared, used, and managed in the common language runtime, and is also an important part of the runtime's support for cross-language integration. The common type system performs the following functions: • Establishes a framework that helps enable cross-language integration, type safety, and high-performance code execution. • Provides an object-oriented model that supports the complete implementation of many programming languages. • Defines rules that languages must follow, which helps ensure that objects written in different languages can interact with each other. • Provides a library that contains the primitive data types (such as Boolean, Byte, Char, Int32, and UInt64) used in application development.
  • 9. Common Language Specification(CLS) CLS is set of rules to design any language to support .NET framework
  • 10. MSIL(Microsoft Intermediate Language) • .NET programming language does not compile into executable code instead it compiles into an intermediate code • MSIL code is then send to CLR that converts the code to machine langaugae it run on host machine. • MSIL is similar to java byte code
  • 11. Just in time (JIT) Compiler • CPU Specific code that runs on the same computer architecture as the JIT compiler. • The CLR supplies a JIT compiler for each supported CPU architecture, developers can write a set of MSIL that can be JIT compiled and run on computers with different architectures.
  • 12. Managed and Unmanaged code • It is a code that written to target the services of the common language runtime. • All C#, Visual Basic .NET, and Jscript .NET code is managed by default • Visual Studio .NET C++ code is not managed by default, but the compiler can produce managed code.
  • 13. Net Framework Architecture • .Net Framework Architecture is a programming model for the .Net platform that provides an execution environment and integration with various programming languages for simple development and deployment of various Windows and desktop applications. It consists of class libraries and reusable components.
  • 15. .NET Components 1. Common Language Runtime The CLI has the following key features: • Exception Handling • Garbage Collection • Working with Various programming languages
  • 16. Exception Handling • Exceptions are errors which occur when the application is executed.Examples of exceptions are: • If an application tries to open a file on the local machine, but the file is not present. • If the application tries to fetch some records from a database, but the connection to the database is not valid.
  • 17. Garbage Collection • Garbage collection is the process of removing unwanted resources when they are no longer required.Examples of garbage collection are • A File handle which is no longer required. If the application has finished all operations on a file, then the file handle may no longer be required. • The database connection is no longer required. If the application has finished all operations on a database, then the database connection may no longer be required.
  • 18. Class Library • A class library is a collection of methods and functions that can be used for the core purpose. • For example, there is a class library with methods to handle all file-level operations. So there is a method which can be used to read the text from a file. Similarly, there is a method to write text to a file.