Presentation is loading. Please wait.

Presentation is loading. Please wait.

.NET Framework Design Goals

Similar presentations


Presentation on theme: ".NET Framework Design Goals"— Presentation transcript:

1 .NET Framework Design Goals
Dramatically simplifies development and deployment Unifies programming models Provides robust and secure execution environment Supports multiple programming languages

2 Framework, Languages, And Tools
Operating System Common Language Runtime Base Class Library ADO.NET and XML ASP.NET Web Forms Web Services Mobile Internet Toolkit Windows Forms Common Language Specification VB C++ C# JScript J# Visual Studio.NET

3 demo One Lap Around .NET

4 Demo: One Lap Around .NET
Create a simple Web Service Test it in Internet Explorer Add data logic to it Build a smart client for it Show seamless and safe deployment of the smart client

5 Code and data structures
The .NET Evolution Application Code and data structures Before COM, applications were completely separate entities with little or no integration

6 The .NET Evolution COM provides a way for components to integrate; However, each component must provide the “plumbing” and objects cannot directly interact

7 The .NET Evolution With the .NET Framework common language runtime, components are built on a common substrate; No “plumbing” is needed and objects can directly interact

8 Compilation And Execution
Assembly Code (IL) Source Code Language Compiler Metadata Execution JIT Compiler Native Code At installation or the first time each method is called

9 Simplify Development Common Type System Enables clean OO programming
Common instance and type definition Enables clean OO programming Classes and interfaces Constructors, properties, methods, events Cross language inheritance Built-in interoperability With COM With native (Win32® style) DLLs

10 Everything Is An Object
Traditional views of primitive types C++, Java™: They’re “magic” Smalltalk, Lisp: They’re full-blown objects .NET Framework solution: Value types unifies with no performance cost Deep simplicity throughout system Improved extensibility and reusability New primitive types: Decimal, SQL… Collections, etc., work for all types

11 Everything Is An Object
Boxing Allocates box, copies value into it Unboxing Checks type of box, copies value out int i = 123; object o = i; int j = (int)o; Dim i As Integer = 123 Dim o As Object = i Dim j As Integer = CInt(o) 123 i o System.Int32 j

12 Robust Environment Automatic lifetime management Exception handling
All objects are garbage collected Exception handling Error handling first class and mandatory Type-safety No buffer overruns, No unsafe casts, Uninitialized variables

13 Secure Environment Security designed-in
Code access security enforcement Security based on the identity of code Administratively configurable via policy ASP.NET integrated authentication of user Windows identity, Passport®, forms-based, … Cryptography library with XML DSIG support Digital signature for XML (

14 Simplify Deployment And Management
Zero-impact install Applications and components can be shared or private Side-by-side execution Multiple versions of the same component can co-exist on a system Assemblies Contain dependency information

15 Unify Programming Models
.NET Framework Consistent API availability regardless of language and programming model VB Forms RAD, Composition, Delegation MFC/ATL Subclassing, Power, Expressiveness ASP Stateless, Code embedded in HTML pages Windows API

16 How Much Simpler? Windows API .NET Framework
HWND hwndMain = CreateWindowEx( 0, "MainWClass", "Main Window", WS_OVERLAPPEDWINDOW | WS_HSCROLL | WS_VSCROLL, CW_USEDEFAULT, CW_USEDEFAULT, (HWND)NULL, (HMENU)NULL, hInstance, NULL); ShowWindow(hwndMain, SW_SHOWDEFAULT); UpdateWindow(hwndMain); .NET Framework Dim form As New Form() form.Text = "Main Window" form.Show()

17 Factored And Extensible
The Framework is not a “black box” Any .NET class is available for you to extend through inheritance Gives developers much more head room Plug and Play components and subsystems

18 The .NET Framework Library
Web Forms Web Services Mobile Internet Toolkit Windows Forms ASP.NET ADO.NET and XML Base Class Library

19 The .NET Framework Library
System System.Data System.Xml System.Web Globalization Diagnostics Configuration Collections Resources Reflection Net IO Threading Text ServiceProcess Security Common OleDb SQLTypes SqlClient XPath XSLT Runtime InteropServices Remoting Serialization SessionState Caching Services Description Discovery Protocols UI HtmlControls WebControls System.Drawing Imaging Drawing2D Printing System.Windows.Forms Design ComponentModel

20 Base Framework System Collections Security Configuration
ServiceProcess Diagnostics Text Globalization Threading IO Runtime InteropServices Net Remoting Reflection Serialization Resources

21 Data And XML System.Data OleDb SQLClient Common SQLTypes System.Xml
XSLT Serialization XPath

22 ASP.NET System.Web Services UI Description HtmlControls Discovery
WebControls Protocols Caching Security Configuration SessionState

23 Windows® Forms System.Windows.Forms Design ComponentModel
System.Drawing Drawing2D Printing Imaging Text

24 Standardization A subset of the .NET Framework and C# submitted to ECMA Adopted as International standards in Dec. 2001 In the ISO fast-track process now Co-sponsored with Intel, Hewlett-Packard Common language infrastructure Based on common language runtime and base framework Layered into increasing levels of functionality

25


Download ppt ".NET Framework Design Goals"

Similar presentations


Ads by Google