SlideShare une entreprise Scribd logo
1  sur  18
LECTURE 10
BY: RUBYNA VOHRA
AGENDA
• Introduction to the .NET Framework
• Explain the purpose of the .NET Framework
• .NET Framework Practice
INTRODUCTION TO THE .NET
FRAMEWORK
WHAT IS THE .NET FRAMEWORK?
• A software development platform developed by Microsoft for building and running
Windows applications.
• The .Net framework consists of developer tools, programming languages, and libraries
to build desktop and web applications. It is also used to build websites, web services,
and games.
• The Microsoft .Net framework can be used to create both - Form-based and Web-
based applications.
• The framework also supports various programming languages such as Visual Basic
and C#.
.NET FRAMEWORK
• .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 COMPONENTS
1. COMMON LANGUAGE RUNTIME
• The "Common Language Infrastructure" or CLI is a platform in .Net architecture on which the .Net programs are
executed.
• The CLI has the following key features:
• 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.
• Working with Various programming languages –.
• Language - The first level is the programming language itself, the most common ones are VB.Net and C#.
• Compiler – There is a compiler which will be separate for each programming language. So underlying the VB.Net
language, there will be a separate VB.Net compiler. Similarly, for C#, you will have another compiler.
• Common Language Interpreter – This is the final layer in .Net which would be used to run a .net program developed
in any programming language. So the subsequent compiler will send the program to the CLI layer to run the .Net
application.
2. CLASS LIBRARY
• The .NET Framework includes a set of standard class libraries.
• 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.
• Most of the methods are split into either the System.* or Microsoft.* namespaces.
(The asterisk * just means a reference to all of the methods that fall under the
System or Microsoft namespace)
• A namespace is a logical separation of methods. We will learn these namespaces
more in detail in the subsequent chapters.
3. LANGUAGES
• The types of applications that can be built in the .Net framework is classified broadly into the
following categories.
• WinForms – This is used for developing Forms-based applications, which would run on an end user
machine. Notepad is an example of a client-based application.
• ASP
.Net – This is used for developing web-based applications, which are made to run on any browser
such as Internet Explorer, Chrome or Firefox.
• The Web application would be processed on a server, which would have Internet Information Services
Installed.
• Internet Information Services or IIS is a Microsoft component which is used to execute an Asp.Net
application.
• The result of the execution is then sent to the client machines, and the output is shown in the browser.
• ADO.Net – This technology is used to develop applications to interact with Databases such as Oracle
or Microsoft SQL Server.
• Microsoft always ensures that .Net frameworks are in compliance with all the supported
Windows operating systems.
.NET FRAMEWORK DESIGN PRINCIPLE
• The following design principles of the .Net framework is what makes it very relevant to create .Net based applications.
• Interoperability - The .Net framework provides a lot of backward support. Suppose if you had an application built on an
older version of the .Net framework, say 2.0. And if you tried to run the same application on a machine which had the
higher version of the .Net framework, say 3.5. The application would still work. This is because with every release, Microsoft
ensures that older framework versions gel well with the latest version.
• Portability- Applications built on the .Net framework can be made to work on any Windows platform. And now in recent
times, Microsoft is also envisioning to make Microsoft products work on other platforms, such as iOS and Linux.
• Security - The .NET Framework has a good security mechanism. The inbuilt security mechanism helps in both validation
and verification of applications. Every application can explicitly define their security mechanism. Each security mechanism is
used to grant the user access to the code or to the running program.
• Memory management - The Common Language runtime does all the work or memory management. The .Net framework
has all the capability to see those resources, which are not used by a running program. It would then release those
resources accordingly. This is done via a program called the "Garbage Collector" which runs as part of the .Net
framework.The garbage collector runs at regular intervals and keeps on checking which system resources are not utilized,
and frees them accordingly.
• Simplified deployment - The .Net framework also have tools, which can be used to package applications built on the .Net
framework. These packages can then be distributed to client machines. The packages would then automatically install the
application.
SUMMARY
• Net is a programming language developed by Microsoft. It was designed to
build applications which could run on the Windows platform.
• The .Net programming language can be used to develop Forms based
applications, Web based applications, and Web services.
• Developers can choose from a variety of programming languages available on
the Microsoft .Net framework platform. The most common ones are VB.Net and
C#.
•
.NET - A UNIFIED PLATFORM
DISCUSSION
• Why is this important?
• How can this be useful to me?
• How can I use this in my current
job?
• How can I use this in my future
career?
• What will I get out of this?
• How is this used in the real world
Regroup and discuss after…
COMPLETE THE
WORKSHEET WITH
YOUR GROUP
Regroup and discuss after…

Contenu connexe

Tendances (20)

Compiler design
Compiler designCompiler design
Compiler design
 
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONS
 
Debuggers in system software
Debuggers in system softwareDebuggers in system software
Debuggers in system software
 
Ic lecture8
Ic lecture8 Ic lecture8
Ic lecture8
 
Compiler vs interpreter
Compiler vs interpreterCompiler vs interpreter
Compiler vs interpreter
 
Compilers
CompilersCompilers
Compilers
 
Language processor
Language processorLanguage processor
Language processor
 
Compiler vs interpreter
Compiler vs interpreterCompiler vs interpreter
Compiler vs interpreter
 
Introduction to course
Introduction to courseIntroduction to course
Introduction to course
 
Unit 1
Unit 1Unit 1
Unit 1
 
Compilation v. interpretation
Compilation v. interpretationCompilation v. interpretation
Compilation v. interpretation
 
Compiler Design Basics
Compiler Design BasicsCompiler Design Basics
Compiler Design Basics
 
Programming paradigm and web programming
Programming paradigm and web programmingProgramming paradigm and web programming
Programming paradigm and web programming
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Compiler type
Compiler typeCompiler type
Compiler type
 
compiler and their types
compiler and their typescompiler and their types
compiler and their types
 
Compiler design tutorial
Compiler design tutorialCompiler design tutorial
Compiler design tutorial
 
Compilation of c
Compilation of cCompilation of c
Compilation of c
 
Compilers
CompilersCompilers
Compilers
 
Compiler interpreter and_bootstrapping
Compiler interpreter and_bootstrappingCompiler interpreter and_bootstrapping
Compiler interpreter and_bootstrapping
 

Similaire à Lecture 10

Intro to Microsoft.NET
Intro to Microsoft.NET Intro to Microsoft.NET
Intro to Microsoft.NET rchakra
 
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.pptxGaytriMate
 
Advance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptxAdvance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptxpercivalfernandez3
 
Advance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdfAdvance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdfpercivalfernandez2
 
Difference between .net core and .net framework
Difference between .net core and .net frameworkDifference between .net core and .net framework
Difference between .net core and .net frameworkAnsi Bytecode
 
Difference between .net and asp.net all you need to know
Difference between .net and asp.net  all you need to knowDifference between .net and asp.net  all you need to know
Difference between .net and asp.net all you need to knowsophiaaaddison
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?LOGINPHP360
 
Modified.net overview
Modified.net overviewModified.net overview
Modified.net overviewFaisal Aziz
 
Net training in bhubaneswar
Net training in bhubaneswar Net training in bhubaneswar
Net training in bhubaneswar litbbsr
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?LOGINPHP360
 
.Net framework
.Net framework.Net framework
.Net frameworksanya6900
 

Similaire à Lecture 10 (20)

C# and dot net framework
C# and dot net frameworkC# and dot net framework
C# and dot net framework
 
Visual Basic User Interface-III
Visual Basic User Interface-IIIVisual Basic User Interface-III
Visual Basic User Interface-III
 
Intro to Microsoft.NET
Intro to Microsoft.NET Intro to Microsoft.NET
Intro to Microsoft.NET
 
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
 
c#.pptx
c#.pptxc#.pptx
c#.pptx
 
Best DotNet Training in Delhi
Best   DotNet Training  in DelhiBest   DotNet Training  in Delhi
Best DotNet Training in Delhi
 
Advance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptxAdvance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptx
 
Dotnet1
Dotnet1Dotnet1
Dotnet1
 
Advance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdfAdvance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdf
 
Difference between .net core and .net framework
Difference between .net core and .net frameworkDifference between .net core and .net framework
Difference between .net core and .net framework
 
Difference between .net and asp.net all you need to know
Difference between .net and asp.net  all you need to knowDifference between .net and asp.net  all you need to know
Difference between .net and asp.net all you need to know
 
.Net framework
.Net framework.Net framework
.Net framework
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?
 
Asp.net new
Asp.net newAsp.net new
Asp.net new
 
Modified.net overview
Modified.net overviewModified.net overview
Modified.net overview
 
Net training in bhubaneswar
Net training in bhubaneswar Net training in bhubaneswar
Net training in bhubaneswar
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?
 
.Net framework
.Net framework.Net framework
.Net framework
 
Session i
Session iSession i
Session i
 
C# chap 2
C# chap 2C# chap 2
C# chap 2
 

Plus de Skillspire LLC (20)

Logistics
LogisticsLogistics
Logistics
 
Introduction to analytics
Introduction to analyticsIntroduction to analytics
Introduction to analytics
 
Lecture 31
Lecture 31Lecture 31
Lecture 31
 
Lecture 30
Lecture 30Lecture 30
Lecture 30
 
Review
ReviewReview
Review
 
Review version 4
Review version 4Review version 4
Review version 4
 
Review version 3
Review version 3Review version 3
Review version 3
 
Review version 2
Review version 2Review version 2
Review version 2
 
Lecture 25
Lecture 25Lecture 25
Lecture 25
 
Lecture 24
Lecture 24Lecture 24
Lecture 24
 
Lecture 17
Lecture 17Lecture 17
Lecture 17
 
Lecture 16
Lecture 16Lecture 16
Lecture 16
 
Lecture 15
Lecture 15Lecture 15
Lecture 15
 
Lecture 14
Lecture 14Lecture 14
Lecture 14
 
Lecture 14
Lecture 14Lecture 14
Lecture 14
 
Lecture 13
Lecture 13Lecture 13
Lecture 13
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
 
Lecture 9
Lecture 9Lecture 9
Lecture 9
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 

Dernier

Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
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 FellowsMebane Rash
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
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Ữ Â...Nguyen Thanh Tu Collection
 
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.MaryamAhmad92
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Dernier (20)

Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View 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
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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Ữ Â...
 
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.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

Lecture 10

  • 2.
  • 3. AGENDA • Introduction to the .NET Framework • Explain the purpose of the .NET Framework • .NET Framework Practice
  • 4. INTRODUCTION TO THE .NET FRAMEWORK
  • 5. WHAT IS THE .NET FRAMEWORK? • A software development platform developed by Microsoft for building and running Windows applications. • The .Net framework consists of developer tools, programming languages, and libraries to build desktop and web applications. It is also used to build websites, web services, and games. • The Microsoft .Net framework can be used to create both - Form-based and Web- based applications. • The framework also supports various programming languages such as Visual Basic and C#.
  • 6. .NET FRAMEWORK • .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.
  • 8. 1. COMMON LANGUAGE RUNTIME • The "Common Language Infrastructure" or CLI is a platform in .Net architecture on which the .Net programs are executed. • The CLI has the following key features: • 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. • Working with Various programming languages –. • Language - The first level is the programming language itself, the most common ones are VB.Net and C#. • Compiler – There is a compiler which will be separate for each programming language. So underlying the VB.Net language, there will be a separate VB.Net compiler. Similarly, for C#, you will have another compiler. • Common Language Interpreter – This is the final layer in .Net which would be used to run a .net program developed in any programming language. So the subsequent compiler will send the program to the CLI layer to run the .Net application.
  • 9.
  • 10. 2. CLASS LIBRARY • The .NET Framework includes a set of standard class libraries. • 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. • Most of the methods are split into either the System.* or Microsoft.* namespaces. (The asterisk * just means a reference to all of the methods that fall under the System or Microsoft namespace) • A namespace is a logical separation of methods. We will learn these namespaces more in detail in the subsequent chapters.
  • 11. 3. LANGUAGES • The types of applications that can be built in the .Net framework is classified broadly into the following categories. • WinForms – This is used for developing Forms-based applications, which would run on an end user machine. Notepad is an example of a client-based application. • ASP .Net – This is used for developing web-based applications, which are made to run on any browser such as Internet Explorer, Chrome or Firefox. • The Web application would be processed on a server, which would have Internet Information Services Installed. • Internet Information Services or IIS is a Microsoft component which is used to execute an Asp.Net application. • The result of the execution is then sent to the client machines, and the output is shown in the browser. • ADO.Net – This technology is used to develop applications to interact with Databases such as Oracle or Microsoft SQL Server. • Microsoft always ensures that .Net frameworks are in compliance with all the supported Windows operating systems.
  • 12. .NET FRAMEWORK DESIGN PRINCIPLE • The following design principles of the .Net framework is what makes it very relevant to create .Net based applications. • Interoperability - The .Net framework provides a lot of backward support. Suppose if you had an application built on an older version of the .Net framework, say 2.0. And if you tried to run the same application on a machine which had the higher version of the .Net framework, say 3.5. The application would still work. This is because with every release, Microsoft ensures that older framework versions gel well with the latest version. • Portability- Applications built on the .Net framework can be made to work on any Windows platform. And now in recent times, Microsoft is also envisioning to make Microsoft products work on other platforms, such as iOS and Linux. • Security - The .NET Framework has a good security mechanism. The inbuilt security mechanism helps in both validation and verification of applications. Every application can explicitly define their security mechanism. Each security mechanism is used to grant the user access to the code or to the running program. • Memory management - The Common Language runtime does all the work or memory management. The .Net framework has all the capability to see those resources, which are not used by a running program. It would then release those resources accordingly. This is done via a program called the "Garbage Collector" which runs as part of the .Net framework.The garbage collector runs at regular intervals and keeps on checking which system resources are not utilized, and frees them accordingly. • Simplified deployment - The .Net framework also have tools, which can be used to package applications built on the .Net framework. These packages can then be distributed to client machines. The packages would then automatically install the application.
  • 13. SUMMARY • Net is a programming language developed by Microsoft. It was designed to build applications which could run on the Windows platform. • The .Net programming language can be used to develop Forms based applications, Web based applications, and Web services. • Developers can choose from a variety of programming languages available on the Microsoft .Net framework platform. The most common ones are VB.Net and C#. •
  • 14. .NET - A UNIFIED PLATFORM
  • 15.
  • 16. DISCUSSION • Why is this important? • How can this be useful to me? • How can I use this in my current job? • How can I use this in my future career? • What will I get out of this? • How is this used in the real world Regroup and discuss after…
  • 17.
  • 18. COMPLETE THE WORKSHEET WITH YOUR GROUP Regroup and discuss after…