3. Introduction
• Anywhere
• Anytime &
• On any device
Example:
Updates of a football match can be viewed on PDA or
mobile phone using Web Application or Web services in VB.net
Objective
4. • .NET Framework uses XML to
transfer data
• XML data will be in text-based
• It can be understood by application
running on various platforms
• XML enables your application to
access data anytime, anywhere and
on any device
Introduction
6. Common Language Runtime (CLR)
• Exception Handling
• Security
• Debugging &
• Version support
Core Functions
7. • VB
• C#
• C++
with managed extension
Common Language Runtime (CLR)
Supporting Languages
8. • Host multiple languages
• Offers common set of tools
• Ensuring interoperability between the
codes
• Can execute programs written in any
languages that it supports
Common Language Runtime (CLR)
Manages Extension
9. • Managed Code
code developed with language compiler that
targets the CLR.
• UnManaged code
code developed without considering the
convention and requirements of the CLR.
Common Language Runtime (CLR)
10. • Translates it into MSIL/IL
• Produces Metadata during compiling
– Description of the program such as classes &
interfaces, dependences and the version of the
compunents used in the program
• IL and metadata are linked in an assembly
(Contd…)
Common Language Runtime (CLR)
Managed Code Execution Process
11. • Compiler .EXE or .DLL file
– .EXE starts the program
– .DLL reusable components to
perform common task
• During execution
Common Language Runtime (CLR)
Code and all the
relevant information
Loads the code into
memory
Class Library Class Loader
During .EXE or
.DLL file executes
(Contd…)
12. • Just-In-Time (JIT) compiler
IL Managed native code
• Code is checked for type safety
• The native code is sent to the .NET
runtime manager.
• Manager executes the code
Common Language Runtime (CLR)
CLR supplies
JIT compiler
13. .NET Framework Class Library
• Collection of reusable classes
• Common Language Specification(CLS)
• CLS Languages are
– C#
– VB
– Jscript
– VC++ with managed extensions
– VJ++
14. • VB.net is built on the top of the
framework
• Vb.net can use entire set of classes
provided by .net framework
.NET Framework Class Library
.NET Framework
CLS-compliant Languages
Common Language Specifications
.NET Runtime Hosts
Common Languages Runtime
.NET Frame Class Library
15. Namespaces
• Used to create logical groups of related
classes and interfaces
• Can by used by any languages
• Avoid any naming conflicts between classes
that have the same names.
• Import the namespace into an application
• Dot(.) is used As the delimiter between classes
and namespaces.
Example
System.console
.NET Framework Class Library
16. Assemblies
• Single deployable unit
• Information about the implementation of
classes, structures and interfaces.
• Information meta data
• Includes the name and version number
of the assembly
• CLR assemblies and
metadata
.NET Framework Class Library
Info to execute