Beruflich Dokumente
Kultur Dokumente
.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
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.
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.
.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.
Distributed Transactions
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
Source Code
Language Compiler
Assembly
Metadata
Code (IL)
JIT Compiler
.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
Comparison to Java
compile Hello.java Hello.class execute JVM
Source code
Byte code
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
COM Interoperability
IUnknown
IDispatch Legacy Client IBookFlight COM Callable BookFlight Wrapper IBookflight
ISeatRes
SeatRes
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,