You are on page 1of 18

Introduction to .

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

At the end of this module you should be able to:


Define .NET
Define the objectives of the .NET Framework
Define Common Language Runtime
Apply the .NET Base Class Libraries
Describe the Integrated Development Environment (Visual Studio 2005)
Describe the CLR: Execution process
Describe assemblies
Describe the features of VB.NET

3
What is .NET?

Microsoft .NET is a vision and set of Microsoft software technologies


for connecting information, people, systems and devices
.NET represents an advanced new generation of software that will drive
the Next Generation Internet
.NET is an initiative to integrate all Microsoft products with the Next
Generation web
Microsoft Visual Studio 2005 and the Microsoft .NET Framework
allow developers to develop XML Web services quickly and integrate
them easily with other applications

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

VB.NET C++ C#.NET JScript

Common Language Specification

Visual Studio 2005


ASP.NET: Web Services Windows
and Web Forms Forms
ADO.NET: Data and XML

Base Class Library

Common Language Runtime

Operating System
6
.NET Framework

The .NET Framework consists of:


The Common Language Runtime (CLR)
A language-neutral development & execution environment that provides
services to help "manage" application execution
The Framework Class Libraries (FCL)
A consistent, object-oriented library of prepackaged functionality

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

The Class Library is a comprehensive, object-oriented collection of


reusable types
These class types can be used to develop applications that include:
Traditional command-line applications
Graphical user interface (GUI) applications
Applications based on the latest innovations provided by ASP.NET
Web Forms
XML Web services

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

Common Language Runtime


JIT Compiler

Native Code

Operating System Services


11
Visual Studio 2005

Integrated Development Environment


Visual Basic 2005
Many language enhancements
Inheritance, overloading, free threading
Visual C++
Integration with .NET Framework with managed extensions (classes)
C#
New development language
Based on C/C++ with garbage collection/memory management

12
Assemblies

Assemblies are the building blocks of .NET Framework applications


They form the fundamental unit of deployment, version control, reuse,
activation scoping, and security permissions.
An assembly is a collection of types and resources that
are built to work together and form a logical unit of
functionality.
They provide the CLR with the information it needs to
be aware of type implementations. To the runtime, a
type does not exist outside the context of an assembly.
An assembly can be Shared or Private.
Private assembly is available only to the application for
which it is created
Shared assembly is available to more than one
(multiple) applications. Shared assemblies are stored in
the assembly cache (GAC) using the .NET utility
Gacutil.exe or Regasm.exe.
13
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

Microsoft VB.NET developed by Microsoft Corporation, USA


New programming language that runs on the .NET Framework
VB.NET is simple, modern, type safe, and object oriented
VB.NET code is compiled as managed code

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

You might also like