Sie sind auf Seite 1von 25

.

Net Workshop

Introduction to .Net

.Net is a new framework for developing web-based and windows-based applications within the Microsoft environment.
Provides language interoperability
A code-execution environment that guarantees safe execution of code, including code created by an unknown or semi-trusted third party

Types of Applications:
Console based Application Window Based Application

Web Based Application

Mobile Based Application

Types of Applications:
C Console based Application YES

Window Based Application

Web Based Application

Mobile Based Application

YES

Types of Applications:
C C++ Console based Application YES YES

Window Based Application

Web Based Application

Mobile Based Application

YES

YES

Types of Applications:
C Console based Application YES Window Based Application YES C++ PHP

Web Based Application YES Mobile Based Application

YES

YES

Types of Applications:
Java C Console based Application Window Based Application Web Based Application Mobile Based Application C++ PHP YES YES YES YES YES YES .Net

YES YES YES

YES

YES

YES

YES

Features of .Net

Multiple Language Support(language Independent) Interoperability Increased Performance Developer productivity Mobility support Flexible Data Access Ease of Deployment Integration with Existing System Secured

History

Development began in 1998 Beta 1 released Oct, 2000 Beta 2 released July, 2001 Finalized in Dec, shipping in Feb 2002 Vista ships with .NET Framework 3.0 (Runtime)

.NET Framework
Common Language Runtime
CLR manages code execution at runtime Memory management, thread management, etc.

Common Language Runtime


Operating System

NET Framework
Base Class Library
Object-oriented collection of reusable types Collections, I/O, Strings,

.NET Framework (Base Class Library)

Common Language Runtime


Operating System

NET Framework
Data Access Layer
Access relational databases Disconnected data model Work with XML

ADO .NET and XML .NET Framework (Base Class Library)

Common Language Runtime


Operating System

NET Framework
ASP.NET & Windows Forms
Create applications front-end Web-based user interface, Windows GUI, Web services,
ASP .NET
Web Forms Web Services Mobile Internet Toolkit

Windows Forms

ADO .NET and XML .NET Framework (Base Class Library)

Common Language Runtime


Operating System

.NET Framework
Programming Languages
Use your favorite language
C++ C#
VB.NET Perl

J#

Windows Forms

ASP .NET
Web Forms Web Services Mobile Internet Toolkit

ADO .NET and XML .NET Framework (Base Class Library)

Common Language Runtime


Operating System

.NET Framework
Common Language Specification

C++

VB Common Language C# Perl Specification J#

ASP .NET
Web Forms Web Services Mobile Internet Toolkit

Windows Forms

ADO .NET and XML .NET Framework (Base Class Library)

Common Language Runtime


Operating System

.NET Framework
Visual Studio .NET
C++ C#
VB

Perl

J#

Common Language Specification Visual Studio .NET ASP .NET


Web Forms Web Services Mobile Internet Toolkit

Windows Forms

ADO .NET and XML .NET Framework (Base Class Library)

Common Language Runtime


Operating System

Visual Studio .NET

Development tool that contains a rich set of productivity and debugging features
Supports managed and unmanaged applications Supports C#, C++, VB.NET, Many useful tools and wizards Windows Forms Designer ASP.NET Web Forms Designer SQL Server integration with ADO.NET and XML

Visual Studio .NET

From Visual Studio.NET you can:


Write code Design user interface Study documentation Debug Test Deploy

Same tools for all languages

.NET Framework Common Language Runtime (CLR)

CLR works like a virtual machine in executing all languages. All .NET languages must obey the rules and standards imposed by CLR. Examples:
Object declaration, creation and use Data types,language libraries Error and exception handling Interactive Development Environment (IDE)

19

.NET Framework Common Language Runtime (CLR) Development


Mixed language applications
Common Language Specification (CLS) Common Type System (CTS) Standard class framework Automatic memory management

Consistent error handling and safer execution

Deployment

20

Compilation in .NET
Code in VB.NET Code in C# Code in another .NET Language

VB.NET compiler

C# compiler

Appropriate Compiler

IL(Intermediate Language) code

CLR just-in-time execution

Intermediate Language(IL)
.NET languages are not compiled to machine
code. They are compiled to an Intermediate Language (IL). CLR accepts the IL code and recompiles it to machine code. The recompilation is just-in-time (JIT) meaning it is done as soon as a function or subroutine is called.

22

.NET Framework Common Language Runtime (CLR) Development


Mixed language applications
Common Language Specification (CLS) Common Type System (CTS) Standard class framework Automatic memory management

Consistent error handling and safer execution

Deployment

23

Languages

Languages provided by MS
VB, C++, C#, J#, JScript

Third-parties are building


APL, COBOL, Pascal, Eiffel, Haskell, ML, Oberon, Perl, Python, Scheme, Smalltalk

Thank You

25

Das könnte Ihnen auch gefallen