Professional Documents
Culture Documents
NET Technology
VB.NET .NET Programming
Contents
What is .NET?
.NET Framework objectives
Core components of .NET Framework
Common language Run Time
.NET Framework Classes/Libraries
Visual Studio 2005
CLR: Execution Mode
Common Type System
Common Language Specification
Assemblies
VB.NET Features
2
Objectives
3
What is .NET?
4
.NET Framework Objectives
The .NET Framework is designed to fulfill the following objectives:
Provide a consistent object-oriented programming environment
Provide a code-execution environment that minimizes software deployment
and versioning conflicts
Provide a code-execution environment that promotes safe execution of code,
including code created by an unknown or semi-trusted third party
Provide a code-execution environment that eliminates the performance
problems of scripted or interpreted environments
Consistent across widely varying types of applications, such as Windows-
based applications and Web-based applications
Build all communication on industry standards to ensure that code based on
the .NET Framework can integrate with any other code
5
.NET Framework
Operating System
6
.NET Framework
7
Common Language Runtime (CLR)
CLR ensures:
A common runtime environment for all .NET languages
Uses Common Type System (strict-type & code-verification)
Uses metadata for safe execution
Memory allocation and garbage collection
Intermediate Language (IL) to native code compilers
Compiles MSIL code into native executable code
Security and interoperability of the code with other languages
Over 15 languages supported today
VB.NET, VB, Jscript, Visual C++ from Microsoft
Perl, Python, Smalltalk, Cobol, Haskell, Mercury, Eiffel, Oberon, Oz,
Pascal, APL, CAML, Scheme, etc.
Enables cross-language interoperability.
Common Language Specification describes interoperability requirements
8
.NET Framework Class Library
9
.NET Framework Libraries
10
CLR: Execution Mode
Source
code
VB VB.NET C++
Unmanaged
Compiler Compiler Compiler Component
Managed Assembly Assembly Assembly
code IL Code IL Code IL Code
Native Code
12
Assemblies
Features of Assemblies
Self-Describing
Contains metadata that stores information about the assembly, such as the data type of the
variables and methods declared in the assembly.
Side-by-Side execution
Enables you to install multiple versions of the same assembly in one application.
Version dependency
An assembly manifest is used to maintain versions of the resources in an assembly. Manifest
is a part of the assembly that contains metadata. When you reference an application the
version of the referenced assembly is stored in the manifest of the application.
Application domain
Enables you to execute multiple applications that are independent of each other. All
applications are part of the same process. An error in one application does not affect another
application even though they are part of the same process.
Zero-Impact installation
You dont have to register the assembly with the operating system. You can use xcopy or
copy commands to install an assembly.
14
VB.NET
15
VB.NET Features
Simple
Modern
Object-Oriented
Type-safe
Versionable
Compatible
Inter-operability
Secure
Multi-threaded
16
Key Points
.NET represents a new generation of software that will drive the Next
Generation Internet
CLR is a common runtime environment for all .NET languages
.NET Framework Class Library, is a comprehensive, object-oriented
collection of reusable types
Assemblies are the building blocks of .NET Framework applications
VB.NET is a new programming language that runs on the .NET
Framework
VB.NET is simple, modern, type-safe, secure, multi-threaded and
object-oriented
17
Questions and Comments
18