Sie sind auf Seite 1von 26

What is .Net?

.NET is a revolutionary new platform, built on open Internet protocols and standards, with tools and services that meld computing and communications in new ways.
-Microsoft

Introduction: (in brief)


New programming methodology
Multiple Languages (VB.Net, C#, J#, Cobol.Net, etc.) JIT Compiler

Primary Parts:
.Net Framework Common Language Runtime (CLR)

RTM:
2002 (v1.0) 2003 (v1.1) 2005 (v2.0)

Before .NET
Windows GUI development: Win32 API, MFC, Visual Basic Web development: ASP Java Write once, run anywhere. Embrace and extend: Visual J++

.NET Features/Claims
Common Language Runtime (CLR)
Runs bytecode in an Inter-Language (IL) format. Allows inter-language and inter-machine interoperability. Set of components and services giving developers access to the features of the runtime. Provides an environment facilitating development and deployment of web based services.

Rich base class library

Ease of development of web-based services


New Programming Language called C# Provides SOAP capabilities

Derives from C and C++ with several additional features such as garbage collection.
Allows .NET components to exchange data messages with components on other platforms.

.Net Framework
A set of approximately 3500 classes. Classes are divided into namespaces grouping similar classes.

For organization, each class belongs to only one namespace.


Most classes are lumped into a name space called System
System.Data: DB access System.XML: reading/writing XML System.Windows.Forms: Forms manipulation System.Net: network communication.

Web App Benchmark

.Net Framework
Supports Web Standards HTML XML XSLT SOAP WSDL (Web Services) ADO.Net: ActiveX Data Objects ASP.Net: Active Server Pages ILDASM: A tool used to properly display IL in a human readable format.

.Net Compact Framework (mobile devices)

Distributed Transactions

Web Service Throughput

Terminology "ABC"
CLR: Common Language Runtime
Intermediate Language (IL) Assembly Metadata
One runtime for many programming languages One intermediate, high-level assembly-style language that is emitted by language compilers Container for code, metadata and resources your new term for what you used to call "D-L-L" Information that describes the shape of data and the runtime behavior of a program

CLR Execution Model: Conceptual


Compilation

Source Code

Language Compiler

Assembly
Metadata

Code (IL)

Native Code Execution

JIT Compiler

Before installation or the first time each method is called

.Net Programming
Languages
1. Visual Basic.Net 2. C# 3. APL 4. Fortran 5. Pascal 6. C++ 7. Haskell 8. Perl 9. Java Language 10.Python 11.COBOL 12.Microsoft JScript 13. RPG 14. Component Pascal 15. Mercury 16. Scheme 17. Curriculum 18. Mondrian 19. SmallTalk 20. Eiffel 21. Oberon 22. Standard ML 23. Forth 24. Oz

Multi-Language Platform
The .NET Platform is language neutral
All .NET languages are first class players Complete cross-language integration Highly leveraged tools

Microsoft is providing
Visual Basic, C++, C#, Java, JScript

Industry and academia


APL, COBOL, Eiffel, Fortran, Haskell, ML, Perl, Python, RPG, Scheme, Smalltalk,

Comparison to Java
compile Hello.java Hello.class execute JVM

Source code

Byte code

compile Hello.vb Hello.exe

execute CLR

Source code

CIL

C# vs. VB.Net
C# No Auto Case adjust Requires {, }, ; Enforces programming rules. Unsafe Blocks Documentation Comments Operator Overloading VB.Net Auto case adjust No line terminators Requires Begin, End Still intended as RAD tool. Allows late binding

Hello, VB.NET!
Module Hello Sub Main() Console.WriteLine("Hello, VB.NET!") End Sub End Module .method public static void Main() cil managed { .entrypoint .custom instance void [mscorlib]System.STAThreadAttribute::.ctor() = ( 01 00 00 00 ) // Code size 14 (0xe) .maxstack 8 IL_0000: nop IL_0001: ldstr "Hello VB.NET!" IL_0006: call void [mscorlib]System.Console::WriteLine(string) IL_000b: nop IL_000c: nop IL_000d: ret } // end of method Hello::Main

ildasm Hello.exe

Global Assembly Cache (GAC)


Used as a centralized repository to store all shared assemblies Used to store the code downloaded from the Internet Repository for prejitted code

Side by Side Execution


Travel Portal (.asmx) Reference: BookFlight, v 1.0.0.5

Policy Private GAC

COM Interoperability
IUnknown
IDispatch Legacy Client IBookFlight COM Callable BookFlight Wrapper IBookflight

Common Language Runtime

ISeatRes
SeatRes

Runtime Callable Wrapper

Advantages of .Net
Write once, run everywhere Multiple programming languages (20+) Coding Reduction
Controls Template projects IIS/Cassini support

Ease of Deployment

Security Features

Evidence-based security Code access security The verification process Role-based security Cryptography Application domains

Summary
Unifies programming models Dramatically simplifies development Provides robust execution environment Supports multiple programming languages Natively supports XML Web Services

Presented by,

B.Krishnaveni M.Janani R.Krishnaveni K.Kavitha

Das könnte Ihnen auch gefallen