Beruflich Dokumente
Kultur Dokumente
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
Types of Applications:
C Console based Application YES
YES
Types of Applications:
C C++ Console based Application YES YES
YES
YES
Types of Applications:
C Console based Application YES Window Based Application YES C++ PHP
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
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.
NET Framework
Base Class Library
Object-oriented collection of reusable types Collections, I/O, Strings,
NET Framework
Data Access Layer
Access relational databases Disconnected data model Work with XML
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
.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
.NET Framework
Common Language Specification
C++
ASP .NET
Web Forms Web Services Mobile Internet Toolkit
Windows Forms
.NET Framework
Visual Studio .NET
C++ C#
VB
Perl
J#
Windows Forms
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
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
Deployment
20
Compilation in .NET
Code in VB.NET Code in C# Code in another .NET Language
VB.NET compiler
C# compiler
Appropriate Compiler
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
Deployment
23
Languages
Languages provided by MS
VB, C++, C#, J#, JScript
Thank You
25