about dotnet framework overview

Upload: msureshengg

Post on 07-Apr-2018

228 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/6/2019 About DotNET Framework Overview

    1/40

  • 8/6/2019 About DotNET Framework Overview

    2/40

  • 8/6/2019 About DotNET Framework Overview

    3/40

    .NET Enterprise Vision

    ERP & Billing

    Customer

    Service

    Sales

    UsersAny device,

    Any place,Any time

    XML Web

    ServicesIntegrate businessapplications andprocesses

    Back OfficeHeterogeneousapplication andserverinfrastructure

    SchedulingAuthentication

    Notification

  • 8/6/2019 About DotNET Framework Overview

    4/40

    So what is .NET?

    Microsoft .NET (pronounced dot net) isa software component that runs on theWindows operating system.

    .NET provides tools and libraries thatenable developers to create Windowssoftware much faster and easier.

    .NET benefits end-users by providingapplications of higher capability, qualityand security.

  • 8/6/2019 About DotNET Framework Overview

    5/40

    Cont..

    Microsoft describes .NET:

    .NET is the Microsoft Web servicesstrategy to connect information, people,

    systems, and devices through software..NET technology provides the ability toquickly build, deploy, manage, and useconnected, security-enhanced solutionswith Web services.

  • 8/6/2019 About DotNET Framework Overview

    6/40

    .NET Framework

    Programming model for .NET

    Platform for running .NET managed codein a virtual machine

    Provides a very good environment todevelop networked applications andWeb Services

    Provides programming API and unifiedlanguage-independent developmentframework

  • 8/6/2019 About DotNET Framework Overview

    7/40

    The Core Component of .NETFramework: FCL, CLR & CLS

    Common Language Runtime

    Garbage collection and Language integration

    Multiple versioning support (no

    more DLL hell!)Integrated security

    services such as:

    Loads and executes codeConverts intermediate language to native

    machine code

  • 8/6/2019 About DotNET Framework Overview

    8/40

    Cont..

    Separates processes and memoryManages memory and objects

    Enforces code and access security

    Handles exceptions

    Interfaces between managed code, COM objects, andDLLs

    Provides type-checking

    Provides code meta data (Reflection)

    Provides profiling, debugging, etc.

  • 8/6/2019 About DotNET Framework Overview

    9/40

    Cont..

    Framework Class Library

    Provides the core functionality:

    ASP.NET, Web Services, ADO.NET,

    Windows Forms, IO, XML, etc.The FCL is a collection of over 7000

    classes and data types that enable.NET applications to read and write

    files, access databases, process XML,display a graphical user interface,draw graphics, use Web services, etc.

  • 8/6/2019 About DotNET Framework Overview

    10/40

    .NET FrameworkCommon Language Runtime

    Operating System

    Common Language Runtime

    CLR manages code executionat runtime

    Memory management, threadmanagement, etc.

  • 8/6/2019 About DotNET Framework Overview

    11/40

    .NET FrameworkBase Class Library

    Operating System

    Common Language Runtime

    .NET Framework (Base Class Library)

    Object-oriented collection ofreusable types

    Collections, I/O, Strings,

  • 8/6/2019 About DotNET Framework Overview

    12/40

    .NET FrameworkData Access Layer

    Operating System

    Common Language Runtime

    .NET Framework (Base Class Library)

    ADO .NET and XML

    Access relational databases

    Disconnected data model

    Work with XML

  • 8/6/2019 About DotNET Framework Overview

    13/40

    .NET FrameworkASP.NET & Windows Forms

    Operating System

    Common Language Runtime

    .NET Framework (Base Class Library)

    ADO .NET and XML

    ASP .NETWeb Forms Web Services

    Mobile Internet Toolkit

    WindowsForms

    Create applications front-end Web-based user interface, Windows GUI,Web services,

  • 8/6/2019 About DotNET Framework Overview

    14/40

    .NET FrameworkProgramming Languages

    Operating System

    Common Language Runtime

    .NET Framework (Base Class Library)

    ADO .NET and XML

    ASP .NETWeb Forms Web Services

    Mobile Internet Toolkit

    WindowsForms

    C++ C# VB.NET Perl J#

    Use your favorite language

  • 8/6/2019 About DotNET Framework Overview

    15/40

    .NET FrameworkCommon Language Specification

    Operating System

    Common Language Runtime

    .NET Framework (Base Class Library)

    ADO .NET and XML

    ASP .NETWeb Forms Web Services

    Mobile Internet Toolkit

    WindowsForms

    Common Language SpecificationC++ C# VB Perl J#

  • 8/6/2019 About DotNET Framework Overview

    16/40

    .NET FrameworkVisual Studio .NET

    Operating System

    Common Language Runtime

    .NET Framework (Base Class Library)

    ADO .NET and XML

    ASP .NETWeb Forms Web Services

    Mobile Internet Toolkit

    WindowsForms

    Common Language Specification

    C++ C# VB Perl J#

    VisualStudio

    .NET

  • 8/6/2019 About DotNET Framework Overview

    17/40

    Operating System

    Common Language Runtime

    .NET Framework (Base Class Library)

    ADO .NET and XML

    ASP .NETWeb Services Web Forms

    Mobile Internet Toolkit

    WindowsForms

    Common Language Specification

    C++ C# VB Perl J#

    VisualStudio

    .NET

    Open LanguageSpecification

    C# Language Submitted to ECMA

    XML-baseddata access

    Web services XML, SOAP-based

    .NET FrameworkStandards Compliance

  • 8/6/2019 About DotNET Framework Overview

    18/40

    Common Language RuntimeManages running code like a virtual machine

    Threading

    Memory management

    No interpreter: JIT-compiler produces native

    code during the program installation or atrun time

    Fine-grained evidence-based security

    Code access security Code can be verified to guarantee type safety

    No unsafe casts, no un-initialized variables andno out-of-bounds array indexing

    Role-based security

  • 8/6/2019 About DotNET Framework Overview

    19/40

    Managed Code

    Code that targets the CLR is referred to asmanaged code

    All managed code has the features of the CLR

    Object-orientedType-safe

    Cross-language integration

    Cross language exception handlingMultiple version support

    Managed code is represented in special

    Intermediate Language (IL)

  • 8/6/2019 About DotNET Framework Overview

    20/40

    Automatic Memory Management

    The CLR manages memory for managed codeAll allocations of objects and buffers made from a

    Managed Heap

    Unused objects and buffers are cleaned up

    automatically through Garbage CollectionSome of the worst bugs in software development

    are not possible with managed code

    Leaked memory or objects

    References to freed or non-existent objects

    Reading of uninitialised variables

    Pointerless environment

  • 8/6/2019 About DotNET Framework Overview

    21/40

    Multiple Language Support

    u IL (MSIL or CIL) Intermediate Languagev It is low-level (machine) language, like

    Assembler, but is Object-orientedu CTS is a rich type system built into the CLR

    v Implements various types (int, float, string, )

    v And operations on those types

    u CLS is a set of specifications that alllanguages and libraries need to followv This will ensure interoperability between

    languages

  • 8/6/2019 About DotNET Framework Overview

    22/40

    Intermediate Language

    .NET languages are compiled to anIntermediate Language (IL)

    IL is also known as MSIL or CIL

    CLR compiles IL in just-in-time (JIT)manner each function is compiledjust before execution

    The JIT code stays in memory for

    subsequent calls

    Recompilations of assemblies are alsopossible

  • 8/6/2019 About DotNET Framework Overview

    23/40

    Common Type System (CTS)

    All .NET languages have the same primitive datatypes. An intin C# is the same as an intinVB.NET

    When communicating between modules written in

    any .NET language, the types are guaranteed tobe compatible on the binary level

    Types can be:

    Value types passed by value, stored in the stack

    Reference types passed by reference, stored in theheap

    Strings are a primitive data type now

  • 8/6/2019 About DotNET Framework Overview

    24/40

    Common LanguageSpecification (CLS)

    Any language that conforms to the CLS isa .NET language

    A language that conforms to the CLS has theability to take full advantage of theFramework Class Library (FCL)

    CLS is standardized by ECMA

  • 8/6/2019 About DotNET Framework Overview

    25/40

    .NET Languages

    Languages provided by MicrosoftC++, C#, J#, VB.NET, JScript

    Third-parties languages

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

    Advanced multi-language featuresCross-language inheritance and

    exceptions handling

    Object system is built in, not bolted on

  • 8/6/2019 About DotNET Framework Overview

    26/40

    C# Language

    Mixture between C++, Java and DelphiComponent-oriented

    Properties, Methods, Events

    Attributes, XML documentation

    All in one place, no header files, IDL, etc.

    Can be embedded in ASP+ pages

    Everything really is an object

    Primitive types arent magic

    Unified type system == Deep simplicity

    Improved extensibility and reusability

  • 8/6/2019 About DotNET Framework Overview

    27/40

    C# Language Example

    using System;

    class HelloWorld

    {public static void main()

    {

    Console.WriteLine(Hello, world!);

    }

    }

  • 8/6/2019 About DotNET Framework Overview

    28/40

    Code Compilation and Execution

    Compilation

    Beforeinstallation orthe first time

    each method is

    calledExecutionJIT

    CompilerNativeCode

    MSILCode

    Metadata

    SourceCode

    LanguageCompiler

    Also calledAssembly

    (.EXE or.DLL file)

  • 8/6/2019 About DotNET Framework Overview

    29/40

    AssembliesDLL or EXE file

    Smallest deployable unit in the CLR

    Have unique version number

    No version conflicts (known as DLL hell)

    Contains IL code to be executed

    Security boundary permissions are granted atthe assembly level

    Type boundary all types include the assemblyname they are a part of

    Self-describing manifest metadata thatdescribes the types in the assembly

  • 8/6/2019 About DotNET Framework Overview

    30/40

    Metadata in Assembly

    Type Descriptions

    ClassesBase classesImplemented interfacesData members

    Methods

    NameVersionCulture

    Assembly Description

    Other assembliesSecurity PermissionsExported Types

  • 8/6/2019 About DotNET Framework Overview

    31/40

    Applications

    One or more assembliesAssemblies conflict resolution

    Using metadata Local (preferred)

    Global Assembly Cache (GAC)

    Different applications may use different

    versions of an assemblyEasier software updates

    Easier software removal

  • 8/6/2019 About DotNET Framework Overview

    32/40

    Visual Studio .NETDevelopment tool that contains a rich set of productivityand debugging featuresSupports managed and unmanaged applications

    Supports C#, C++, VB.NET,

    Many useful tools and wizards

    Windows Forms Designer

    ASP.NET Web Forms Designer

    Web Services support

    SQL Server integration with ADO.NET and XML

    VS.NET is not part of the .NET Framework

    Not necessary to build or run managed code

    The .NET Framework SDK includes command line compilers

  • 8/6/2019 About DotNET Framework Overview

    33/40

    VS.NET Single DevelopmentEnvironment & Skill Set

    From Visual Studio.NET you can:

    Write code

    Design user interface

    Study documentation

    Debug

    Test

    Deploy

    Same tools for all languages

    Same tools for all platforms

  • 8/6/2019 About DotNET Framework Overview

    34/40

    The .NET Framework Library

    Base Class Library

    ADO.NET and XML

    Web Forms Web ServicesMobile Internet Toolkit

    WindowsForms

    ASP.NET

  • 8/6/2019 About DotNET Framework Overview

    35/40

    .NET Contains:

  • 8/6/2019 About DotNET Framework Overview

    36/40

    Version And Release:

  • 8/6/2019 About DotNET Framework Overview

    37/40

    Summary

    .NET Framework is a code execution platform theenvironment which .NET programs run

    .NET Framework consists of two primary parts:Common Language Runtime and .NET Class

    LibrariesThe CLS (Common Language Specification) allows

    different languages to interact seamlessly.

    The CTS (Common Type System) allows alllanguages to share base data types.

  • 8/6/2019 About DotNET Framework Overview

    38/40

    Summary (2)

    .NET languages are compiled to MSIL by theirrespective compilers

    MSIL code is compiled to machine code by the JITcompiler

    All .NET languages have equal access to the FCL(Framework Class Library) which is a rich set ofclasses for developing software

    Base Class Library is set of basic classes:Collections, I/O, Networking, Security, etc.

    ADO.NET provides .NET applications with accessto relational databases

  • 8/6/2019 About DotNET Framework Overview

    39/40

    Summary (3)

    .NET has great XML support including: DOM, XSLT,XPath, and XSchema

    Windows Forms provides GUI interface for the .NETapplications

    ASP.NET allows creating web interface to .NETapplications

    Web Services expose functionality from web sites andmake it remotely accessible through standard XML-based protocols

    Visual Studio .NET is powerful development IDE forall .NET languages and technologies

  • 8/6/2019 About DotNET Framework Overview

    40/40

    .NET Framework ResourcesVisit following web sites:

    .NET Framework Home Site http://msdn.microsoft.com/netframework/

    The Microsoft .NET Framework Community http://www.gotdotnet.com/

    ASP.NET http://www.asp.net/

    .NET Windows Forms http://www.windowsforms.net/

    Code Project http://www.codeproject.net/

    Mono Open Source .NET Framework http://www.go-mono.org/

    Rotor Shared Source .NET CLI http://msdn.microsoft.com/net/sscli/

    Read the news groups:

    news://msnews.microsoft.com/

    i ft bli d t t f k

    http://msdn.microsoft.com/netframework/http://www.gotdotnet.com/http://www.asp.net/http://www.windowsforms.net/http://www.codeproject.net/http://www.go-mono.org/http://msdn.microsoft.com/net/sscli/http://opt/scribd/conversion/tmp/scratch6253/news://msnews.microsoft.com/microsoft.public.dotnet.frameworkhttp://opt/scribd/conversion/tmp/scratch6253/news://msnews.microsoft.com/microsoft.public.dotnet.frameworkhttp://opt/scribd/conversion/tmp/scratch6253/news://msnews.microsoft.com/microsoft.public.dotnet.frameworkhttp://opt/scribd/conversion/tmp/scratch6253/news://msnews.microsoft.com/microsoft.public.dotnet.frameworkhttp://opt/scribd/conversion/tmp/scratch6253/news://msnews.microsoft.com/microsoft.public.dotnet.frameworkhttp://opt/scribd/conversion/tmp/scratch6253/news://msnews.microsoft.com/microsoft.public.dotnet.frameworkhttp://msdn.microsoft.com/net/sscli/http://www.go-mono.org/http://www.codeproject.net/http://www.windowsforms.net/http://www.asp.net/http://www.gotdotnet.com/http://msdn.microsoft.com/netframework/