SlideShare a Scribd company logo
1 of 19
.NET Framework
Session 1
Objectives
1. .NET Framework architecture.
2. C# vs Java.
3. .NET Framework component.
4. Advantages of .NET Framework .
5. Framework Classes.
6. CLR
What is .NET framework
 .NET is a new technology for building modern
application that can be executed in any modern
operating system and modern devices like
PCs,servers,palm-tops etc.
.NET is the Microsoft services strategy to connect
information, people, systems, and devices through
software. Integrated across the Microsoft platform, .NET
technology provides the ability to quickly build, deploy,
manage, and use connected, security-enhanced solutions.
The .NET Framework has been designed so that it
can be used from any language, including C# as well
as C++, Visual Basic, JScript, and even older
languages such as COBOL.
(.NET is platform independent. As of now it can work
on Windows and Linux OS because MS has launched
only two JIT(Just In Time) compilers one for each
OS. If MS launches JIT compilers for other OS’s it
will be able to run in them too.)
It provides complete environment to developers for
developing
1)Windows application
2)Web application(ASP.NET)
3) Web Services
4)Console application
5)Class libraries
The key features of .NET framework are:
A) Base Class Library:- The base class library of .NET
framework contains rich collection of classes that are
available to developer for codes.
B)Common Language Runtime:- It is heart of .NET
framework. .NET framework provides a runtime
environment called the Common Language Runtime
or CLR.(Similar to JVM in Java).
C)Class Loader:-class loader is component of .NET
framework's runtime which loads the classes from
class library as required by MSIL.
CLR(Common Language Runtime)
• CLR provides some functionality, such as
a)Memory management
b) exception handling
c)Debugging
d)Security
e)Thread execution
f)Code execution
g)Code safety
h)Code verification
& Compilation
Managed & Unmanaged Code
• Managed code is the code that is executed
directly by the CLR.Therefore,the application
that are created using managed code
automatically have CLR services, such as code
access security(CAS) & automatic garbage
collection. The CLR compiles the application to
Intermediate Language(IL) code not machine
code .
CLR perform to execute a piece of
Managed Code
• 1)Selecting a language compiler:
Select programming language
• 2)Compiling the code to IL code:
converting source code to IL code, language
independent
• 3)Compiling IL code to native code:
using JIT Compiler
• 4)Executing the code:
Require result
The CLR converts CIL to native
code
Source Code
C#.Net
VB.Net
Other .Net
Language
Byte Code Native Code
CIL Code
Native Code
C# Compiler
VB.Net
Compiler
Other
Compiler
JIT
Unmanaged Code
Unmanaged code directly compiles to
machine code and runs on the machine where
it has compiled.
It does not have services,such as code access
security(CAS) & memory management which
are provided by the runtime.
D) Assemblies: Assemblies are the fundamental units of
deployment, version name, securities permissions etc.
 An assemblies is a .NET executable program or unit
of deployment like EXE or DLL that delivered as a
single unit.
 When you build a C# windows or console
application, the .exe file produced is an assembly.
If you build a class library the DLL file produced is
also an assembly.
 Multiple versions can be deployed side by side in
different folders.
 These different version can be executed at the same
time without interfering with each other.
CLR Execution Model
VBSource
code
Compiler
C++C#
CompilerCompiler
Assembly
IL Code
Assembly
IL Code
Assembly
IL Code
Operating System Services
Common Language Runtime
JIT Compiler
Native Code
Managed
code
Unmanaged
Component
Life as a Visual Basic 6.0 Programmer
 VB6 is popular due to its ability to build complex
user interfaces, code libraries (e.g., COM servers),
and data access logic with minimal headache.
Down back of VB6
• VB6 is that it is not a fully object-oriented language.
• For example, VB6 does not allow the programmer to
establish classical inheritance.
C# Vs JAVA
 C# provides greater expressiveness & writes
performance critical code .
 Operator Overloading is possible in C#, but not in
JAVA.
 JAVA runs on any machine with JVM, whereas C#
on CLR.
 Applets in JAVA, similar to Web Forms/Win Forms
in C#.
C# Vs JAVA
 In JAVA, the “lang” package is automatically
imported, whereas in C# you have to explicitly
specify “ Using System”.
 There is no partial class concept in JAVA,but it
is present in C#.
.NET Framework component
 A runtime environment, called the "Common
Language Runtime" (CLR) that handles memory
allocation, error trapping, and security features.
 A set of extensive Framework class libraries,
written from the ground up that comprise
practically any functionality .
 Two top-level development, for web applications
(ASP.NET) and regular Windows applications
(Windows Forms).
.NET Framework Classes
ByAnilKumar
System.Data
Design
OLEDB
SQLTypes
SQL
System
Globalization
Diagnostics
Configuration
Collections
Resources
Reflection
Net
IO
Threading
Text
ServiceProcess
Security Runtime
InteropServices
Remoting
Serialization
System.Xml
XPath
XSLT Serialization
System.Web
Configuration SessionState
Caching Security
Services
Description
Discovery
Protocols
UI
HtmlControls
WebControls
System.Drawing
Imaging
Drawing2D
Text
Printing
System.Windows.Forms
Form Button
MessageBox ListControl
Summary
• .NET Framework.
• .NET Classes.
• Common Language Runtime.

More Related Content

What's hot

.Net overview
.Net overview.Net overview
.Net overview
madydud
 
Dotnet framework
Dotnet frameworkDotnet framework
Dotnet framework
Nitu Pandey
 

What's hot (20)

Architecture in .net
Architecture in .netArchitecture in .net
Architecture in .net
 
.Net framework
.Net framework.Net framework
.Net framework
 
.Net overview
.Net overview.Net overview
.Net overview
 
.NET Standard - Under the Hood
.NET Standard - Under the Hood.NET Standard - Under the Hood
.NET Standard - Under the Hood
 
.Net framework architecture
.Net framework architecture.Net framework architecture
.Net framework architecture
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
 
.Net Framwork Architecture And components
.Net Framwork Architecture And components.Net Framwork Architecture And components
.Net Framwork Architecture And components
 
Microsoft .Net Technology
Microsoft .Net TechnologyMicrosoft .Net Technology
Microsoft .Net Technology
 
.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
 
Microsoft .NET Framework
Microsoft .NET FrameworkMicrosoft .NET Framework
Microsoft .NET Framework
 
.Net overview
.Net overview.Net overview
.Net overview
 
.Net overview
.Net overview.Net overview
.Net overview
 
.Net framework
.Net framework.Net framework
.Net framework
 
.Net
.Net.Net
.Net
 
.Net programming with C#
.Net programming with C#.Net programming with C#
.Net programming with C#
 
Node Architecture.pptx
Node Architecture.pptxNode Architecture.pptx
Node Architecture.pptx
 
DOT Net overview
DOT Net overviewDOT Net overview
DOT Net overview
 
Dotnet framework
Dotnet frameworkDotnet framework
Dotnet framework
 
Introductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka PinglikarIntroductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka Pinglikar
 
.Net overview|Introduction Of .net
.Net overview|Introduction Of .net.Net overview|Introduction Of .net
.Net overview|Introduction Of .net
 

Viewers also liked

A comparison between C# and Java
A comparison between C# and JavaA comparison between C# and Java
A comparison between C# and Java
Ali MasudianPour
 
2.overview of c#
2.overview of c#2.overview of c#
2.overview of c#
Raghu nath
 

Viewers also liked (20)

Improving the Quality of Existing Software
Improving the Quality of Existing SoftwareImproving the Quality of Existing Software
Improving the Quality of Existing Software
 
Common asp.net design patterns aspconf2012
Common asp.net design patterns aspconf2012Common asp.net design patterns aspconf2012
Common asp.net design patterns aspconf2012
 
Folien sfps 4
Folien sfps 4Folien sfps 4
Folien sfps 4
 
Introduction to MeteorJS
Introduction to MeteorJSIntroduction to MeteorJS
Introduction to MeteorJS
 
Onion Architecture with S#arp
Onion Architecture with S#arpOnion Architecture with S#arp
Onion Architecture with S#arp
 
Python basic
Python basicPython basic
Python basic
 
3rd june
3rd june3rd june
3rd june
 
C++ to java
C++ to javaC++ to java
C++ to java
 
Dot net guide for beginner
Dot net guide for beginner Dot net guide for beginner
Dot net guide for beginner
 
C sharp
C sharpC sharp
C sharp
 
Beginning Java for .NET developers
Beginning Java for .NET developersBeginning Java for .NET developers
Beginning Java for .NET developers
 
A comparison between C# and Java
A comparison between C# and JavaA comparison between C# and Java
A comparison between C# and Java
 
Php i basic chapter 3
Php i basic chapter 3Php i basic chapter 3
Php i basic chapter 3
 
Microsoft C# programming basics
Microsoft C# programming basics  Microsoft C# programming basics
Microsoft C# programming basics
 
java vs C#
java vs C#java vs C#
java vs C#
 
2.overview of c#
2.overview of c#2.overview of c#
2.overview of c#
 
Difference between C++ and Java
Difference between C++ and JavaDifference between C++ and Java
Difference between C++ and Java
 
Basics of c# by sabir
Basics of c# by sabirBasics of c# by sabir
Basics of c# by sabir
 
C sharp
C sharpC sharp
C sharp
 
C vs c++
C vs c++C vs c++
C vs c++
 

Similar to ASP.NET Session 1

Presentation1
Presentation1Presentation1
Presentation1
kpkcsc
 
1 get started with c#
1   get started with c#1   get started with c#
1 get started with c#
Tuan Ngo
 
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
 
tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notes
WE-IT TUTORIALS
 
Introdot Netc Sharp En
Introdot Netc Sharp EnIntrodot Netc Sharp En
Introdot Netc Sharp En
Gregory Renard
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net framework
Faisal Aziz
 

Similar to ASP.NET Session 1 (20)

Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net framework
 
Introduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutionsIntroduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutions
 
Introduction to .NET by QuontraSolutions
Introduction to .NET by QuontraSolutionsIntroduction to .NET by QuontraSolutions
Introduction to .NET by QuontraSolutions
 
Presentation1
Presentation1Presentation1
Presentation1
 
Introduction to .net
Introduction to .netIntroduction to .net
Introduction to .net
 
1 get started with c#
1   get started with c#1   get started with c#
1 get started with c#
 
Tutorial c#
Tutorial c#Tutorial c#
Tutorial c#
 
Csharp dot net
Csharp dot netCsharp dot net
Csharp dot net
 
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...
 
dot net technology
dot net technologydot net technology
dot net technology
 
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 introduction by Quontra Solutions
.Net introduction by Quontra Solutions.Net introduction by Quontra Solutions
.Net introduction by Quontra Solutions
 
tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notes
 
.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
 
1..Net Framework Architecture-(c#)
1..Net Framework Architecture-(c#)1..Net Framework Architecture-(c#)
1..Net Framework Architecture-(c#)
 
Dotnet1
Dotnet1Dotnet1
Dotnet1
 
Introdot Netc Sharp En
Introdot Netc Sharp EnIntrodot Netc Sharp En
Introdot Netc Sharp En
 
Net Framework overview
Net Framework overviewNet Framework overview
Net Framework overview
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net framework
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 

More from Sisir Ghosh

ASP.NET Session 2
ASP.NET Session 2ASP.NET Session 2
ASP.NET Session 2
Sisir Ghosh
 
ASP.NET Session 3
ASP.NET Session 3ASP.NET Session 3
ASP.NET Session 3
Sisir Ghosh
 
ASP.NET Session 4
ASP.NET Session 4ASP.NET Session 4
ASP.NET Session 4
Sisir Ghosh
 
ASP.NET Session 5
ASP.NET Session 5ASP.NET Session 5
ASP.NET Session 5
Sisir Ghosh
 
ASP.NET Session 6
ASP.NET Session 6ASP.NET Session 6
ASP.NET Session 6
Sisir Ghosh
 
ASP.NET Session 7
ASP.NET Session 7ASP.NET Session 7
ASP.NET Session 7
Sisir Ghosh
 
ASP.NET Session 8
ASP.NET Session 8ASP.NET Session 8
ASP.NET Session 8
Sisir Ghosh
 
ASP.NET Session 9
ASP.NET Session 9ASP.NET Session 9
ASP.NET Session 9
Sisir Ghosh
 
ASP.NET Session 10
ASP.NET Session 10ASP.NET Session 10
ASP.NET Session 10
Sisir Ghosh
 
ASP.NET Session 11 12
ASP.NET Session 11 12ASP.NET Session 11 12
ASP.NET Session 11 12
Sisir Ghosh
 
ASP.NET Session 13 14
ASP.NET Session 13 14ASP.NET Session 13 14
ASP.NET Session 13 14
Sisir Ghosh
 
ASP.NET Session 16
ASP.NET Session 16ASP.NET Session 16
ASP.NET Session 16
Sisir Ghosh
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
Sisir Ghosh
 
Network security
Network securityNetwork security
Network security
Sisir Ghosh
 
Module ii physical layer
Module ii physical layerModule ii physical layer
Module ii physical layer
Sisir Ghosh
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
Sisir Ghosh
 
Overview of data communication and networking
Overview of data communication and networkingOverview of data communication and networking
Overview of data communication and networking
Sisir Ghosh
 
Application layer
Application layerApplication layer
Application layer
Sisir Ghosh
 

More from Sisir Ghosh (20)

ASP.NET Session 2
ASP.NET Session 2ASP.NET Session 2
ASP.NET Session 2
 
ASP.NET Session 3
ASP.NET Session 3ASP.NET Session 3
ASP.NET Session 3
 
ASP.NET Session 4
ASP.NET Session 4ASP.NET Session 4
ASP.NET Session 4
 
ASP.NET Session 5
ASP.NET Session 5ASP.NET Session 5
ASP.NET Session 5
 
ASP.NET Session 6
ASP.NET Session 6ASP.NET Session 6
ASP.NET Session 6
 
ASP.NET Session 7
ASP.NET Session 7ASP.NET Session 7
ASP.NET Session 7
 
ASP.NET Session 8
ASP.NET Session 8ASP.NET Session 8
ASP.NET Session 8
 
ASP.NET Session 9
ASP.NET Session 9ASP.NET Session 9
ASP.NET Session 9
 
ASP.NET Session 10
ASP.NET Session 10ASP.NET Session 10
ASP.NET Session 10
 
ASP.NET Session 11 12
ASP.NET Session 11 12ASP.NET Session 11 12
ASP.NET Session 11 12
 
ASP.NET Session 13 14
ASP.NET Session 13 14ASP.NET Session 13 14
ASP.NET Session 13 14
 
ASP.NET Session 16
ASP.NET Session 16ASP.NET Session 16
ASP.NET Session 16
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
 
Transport layer
Transport layerTransport layer
Transport layer
 
Routing
RoutingRouting
Routing
 
Network security
Network securityNetwork security
Network security
 
Module ii physical layer
Module ii physical layerModule ii physical layer
Module ii physical layer
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Overview of data communication and networking
Overview of data communication and networkingOverview of data communication and networking
Overview of data communication and networking
 
Application layer
Application layerApplication layer
Application layer
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

ASP.NET Session 1

  • 2. Objectives 1. .NET Framework architecture. 2. C# vs Java. 3. .NET Framework component. 4. Advantages of .NET Framework . 5. Framework Classes. 6. CLR
  • 3. What is .NET framework  .NET is a new technology for building modern application that can be executed in any modern operating system and modern devices like PCs,servers,palm-tops etc. .NET is the Microsoft services strategy to connect information, people, systems, and devices through software. Integrated across the Microsoft platform, .NET technology provides the ability to quickly build, deploy, manage, and use connected, security-enhanced solutions.
  • 4. The .NET Framework has been designed so that it can be used from any language, including C# as well as C++, Visual Basic, JScript, and even older languages such as COBOL. (.NET is platform independent. As of now it can work on Windows and Linux OS because MS has launched only two JIT(Just In Time) compilers one for each OS. If MS launches JIT compilers for other OS’s it will be able to run in them too.)
  • 5. It provides complete environment to developers for developing 1)Windows application 2)Web application(ASP.NET) 3) Web Services 4)Console application 5)Class libraries
  • 6. The key features of .NET framework are: A) Base Class Library:- The base class library of .NET framework contains rich collection of classes that are available to developer for codes. B)Common Language Runtime:- It is heart of .NET framework. .NET framework provides a runtime environment called the Common Language Runtime or CLR.(Similar to JVM in Java). C)Class Loader:-class loader is component of .NET framework's runtime which loads the classes from class library as required by MSIL.
  • 7. CLR(Common Language Runtime) • CLR provides some functionality, such as a)Memory management b) exception handling c)Debugging d)Security e)Thread execution f)Code execution g)Code safety h)Code verification & Compilation
  • 8. Managed & Unmanaged Code • Managed code is the code that is executed directly by the CLR.Therefore,the application that are created using managed code automatically have CLR services, such as code access security(CAS) & automatic garbage collection. The CLR compiles the application to Intermediate Language(IL) code not machine code .
  • 9. CLR perform to execute a piece of Managed Code • 1)Selecting a language compiler: Select programming language • 2)Compiling the code to IL code: converting source code to IL code, language independent • 3)Compiling IL code to native code: using JIT Compiler • 4)Executing the code: Require result
  • 10. The CLR converts CIL to native code Source Code C#.Net VB.Net Other .Net Language Byte Code Native Code CIL Code Native Code C# Compiler VB.Net Compiler Other Compiler JIT
  • 11. Unmanaged Code Unmanaged code directly compiles to machine code and runs on the machine where it has compiled. It does not have services,such as code access security(CAS) & memory management which are provided by the runtime.
  • 12. D) Assemblies: Assemblies are the fundamental units of deployment, version name, securities permissions etc.  An assemblies is a .NET executable program or unit of deployment like EXE or DLL that delivered as a single unit.  When you build a C# windows or console application, the .exe file produced is an assembly. If you build a class library the DLL file produced is also an assembly.  Multiple versions can be deployed side by side in different folders.  These different version can be executed at the same time without interfering with each other.
  • 13. CLR Execution Model VBSource code Compiler C++C# CompilerCompiler Assembly IL Code Assembly IL Code Assembly IL Code Operating System Services Common Language Runtime JIT Compiler Native Code Managed code Unmanaged Component
  • 14. Life as a Visual Basic 6.0 Programmer  VB6 is popular due to its ability to build complex user interfaces, code libraries (e.g., COM servers), and data access logic with minimal headache. Down back of VB6 • VB6 is that it is not a fully object-oriented language. • For example, VB6 does not allow the programmer to establish classical inheritance.
  • 15. C# Vs JAVA  C# provides greater expressiveness & writes performance critical code .  Operator Overloading is possible in C#, but not in JAVA.  JAVA runs on any machine with JVM, whereas C# on CLR.  Applets in JAVA, similar to Web Forms/Win Forms in C#.
  • 16. C# Vs JAVA  In JAVA, the “lang” package is automatically imported, whereas in C# you have to explicitly specify “ Using System”.  There is no partial class concept in JAVA,but it is present in C#.
  • 17. .NET Framework component  A runtime environment, called the "Common Language Runtime" (CLR) that handles memory allocation, error trapping, and security features.  A set of extensive Framework class libraries, written from the ground up that comprise practically any functionality .  Two top-level development, for web applications (ASP.NET) and regular Windows applications (Windows Forms).
  • 18. .NET Framework Classes ByAnilKumar System.Data Design OLEDB SQLTypes SQL System Globalization Diagnostics Configuration Collections Resources Reflection Net IO Threading Text ServiceProcess Security Runtime InteropServices Remoting Serialization System.Xml XPath XSLT Serialization System.Web Configuration SessionState Caching Security Services Description Discovery Protocols UI HtmlControls WebControls System.Drawing Imaging Drawing2D Text Printing System.Windows.Forms Form Button MessageBox ListControl
  • 19. Summary • .NET Framework. • .NET Classes. • Common Language Runtime.