Beginning c#.net 2010

download Beginning c#.net 2010

of 19

Transcript of Beginning c#.net 2010

  • 7/28/2019 Beginning c#.net 2010

    1/19

    INTRODUCTION TO .NET

    Microsoft IT Academy

  • 7/28/2019 Beginning c#.net 2010

    2/19

    WHAT IS .NET ?

    NET is platform introduced byMicrosoft todevelop, deploy, host, maintainand execute

    your application.

    In other words it caters to developmentphaseof software development life cycle of an

    application making developer life morecomfortable..

  • 7/28/2019 Beginning c#.net 2010

    3/19

    .NET FRAMEWORK Definition: Is a collection of different

    components, files, documents that arebundled together.

    .NET Framework Architecture consist of

    various components and each componentprovide specific functionality.

  • 7/28/2019 Beginning c#.net 2010

    4/19

    .NET FRAMEWORK ARCHITECTURE

    Consist of5components and eachprovide specific functionality:

    .Net Compliant Languages

    Common Language Specification (CLS)

    Framework Class Library (FCL)

    Common Language Runtime (CLR)

    Visual Studio IDE

  • 7/28/2019 Beginning c#.net 2010

    5/19

    .NET Framework Architecture

    Common Language Runtime

    Framework Class Library

    ADO.NET and XML

    ASP.NET

    Web Forms Web Services

    Mobile Internet Toolkit

    Windows

    Forms

    Common

    Language Specification

    VB C++ C# J# ..

    VisualStudio.IDE

  • 7/28/2019 Beginning c#.net 2010

    6/19

    .NET COMPLIANT LANGUAGE

    It is the first component of .net architecture.

    Is imperative feature of .net and is a facility toprogram in multiple languages, which allowsprogrammers to use their favorite language as itsupports 59 languages.

    Examples: VB .Net, VC#, VJ#, VC++ and many more.

  • 7/28/2019 Beginning c#.net 2010

    7/19

    .NET Framework Architecture

    Common Language Runtime

    Framework Class Library

    ADO.NET and XML

    ASP.NET

    Web Forms Web Services

    Mobile Internet Toolkit

    Windows

    Forms

    VB C++ C# J# ..

    Common Language Specification

    VisualStudio

    .IDE

  • 7/28/2019 Beginning c#.net 2010

    8/19

    COMMON LANGUAGE SPECIFICATION

    It is the second and important componentof .net architecture. CLS defines standard rules for defining

    .NET Compliant Languages.

    Ensure the source code complied by .NETcomplier interoperate with .NET

    Framework. CLS include a subset of CTS (Common

    Type System)

  • 7/28/2019 Beginning c#.net 2010

    9/19

    COMMON TYPE SYSTEM(CTS)

    CTS defines rules regarding data types. All types are derived from a base class i.e.,

    System.Object

    Ensure typesafety, cross languageinteroperability, and high performance ofcode execution.

  • 7/28/2019 Beginning c#.net 2010

    10/19

    .NET Framework Architecture

    Common Language Runtime

    VB C++ C# J# ..

    Framework Class Library

    ADO.NET and XML

    ASP.NET

    Web Forms Web Services

    Mobile Internet Toolkit

    Windows

    Forms

    Common Language Specification

    VisualStudio.IDE

  • 7/28/2019 Beginning c#.net 2010

    11/19

    FRAMEWORK CLASS LIBRARY

    It is the third component of .net architecture.

    FCL is a group/collection of .net frameworkclasses which we can use with console,windows, web applications.

  • 7/28/2019 Beginning c#.net 2010

    12/19

    .NET Framework Architecture

    Framework Class Library

    ADO.NET and XML

    ASP.NET

    Web Forms Web Services

    Mobile Internet Toolkit

    Windows

    Forms

    Common Language Specification

    VB C++ C# J# ..

    VisualStudio

    .IDE

    Common Language Runtime

  • 7/28/2019 Beginning c#.net 2010

    13/19

    COMMON LANGUAGE RUNTIME

    It is the fourth component or heartof .netframework architecture.

    It is known as executionengineof .NETframework.

    Services of CLR are: Secure code of execution(checks of code to see if

    they follow all defined rules).

    Automatic memory management(GC) Interoperability

    Exception handling

  • 7/28/2019 Beginning c#.net 2010

    14/19

    EXECUTION CYCLE OF CLR

    Language specific compiler

  • 7/28/2019 Beginning c#.net 2010

    15/19

    MSIL(Microsoft Intermediate

    Language)

    This is a intermediate language used to convertthe

    source code to dotnet supportable code (otherwise

    called assemblies or Portable Executable(PE) file)

    during compilation. This PE file is machineindependent.

  • 7/28/2019 Beginning c#.net 2010

    16/19

    JIT-JUST IN TIME

    The best features of the CLR is JIT-compilation.

    Its name describes how it works: right beforecalling your method (just in time), the CLR

    uses the JIT-compiler to produce native

    code(EXE or DLL) that is designed for specific

    machine from MSIL.

  • 7/28/2019 Beginning c#.net 2010

    17/19

    .NET Framework Architecture

    Common Language Runtime

    Framework Class Library

    ADO.NET and XML

    ASP.NETWeb Forms Web Services

    Mobile Internet Toolkit

    WindowsForms

    Common Language Specification

    VB C++ C# J# ..

    VisualStudio.IDE

  • 7/28/2019 Beginning c#.net 2010

    18/19

    Visual Studio IDE

    Visual studio IDE (Integrated DevelopmentEnvironment)is used to develop the .NET

    Applications.

  • 7/28/2019 Beginning c#.net 2010

    19/19

    Summary

    .NET

    .NET Framework.

    .NET Framework Architecture.

    .NET Framework Components.

    .NET Compliant Languages.

    CLS

    FCL

    CLR

    Visual Studio IDE