Введение в технологию Microsoft.NET: Лекция по курсу ''Основы платформы Microsoft .NET

  • Published on
    08-Dec-2016

  • View
    215

  • Download
    2

Embed Size (px)

Transcript

  • Microsoft .NET

    : Microsoft.NET

    .....................................................................................................................................1 MS.NET...................................................................................................2 Microsoft.NET Framework ......................................................................................3 Common Language Runtime ........................................................................4 MS.Net...........................................................................7 C++ .............................................................................7 C# .......................................................................................................7 VB.Net ...............................................................................................8

    MS.Net..........................................................................................8 ...............................................................................................................................10

    ,

    .

    , ,

    - ,

    ( )

    .

    , "

    ". (

    ),

    ,

    Microsoft

    Microsoft.Net:

    ,

    ,

    ,

    ,

  • - ,

    , ()

    ,

    ,

    ,

    ,

    Java

    - .

    , ,

    XX ,

    .

    Microsoft 2000 .

    Microsoft.Net. .

    MS.NET

    , Microsoft.NET

    () , (

    , ) [1].

    Visual Studio .NET

    .NET Framework .NET .NET

    . 1. Microsoft.NET

    .NET (. . 1):

    Microsoft (Windows 2000/XP/ME/CE),

    MS.Net,

  • MS.Net (.Net Enterprise Servers)

    Microsoft,

    . Application

    Center 2000, Exchange Server 2000, SQL Server .,

    MS.Net (.Net Building Block Services)

    " " ,

    . MS.Net

    . MS.Net

    Microsoft Passport,

    , Passport,

    Visual Studio.NET (VS.Net)

    MS.Net -

    Microsoft

    .

    MS.Net, . 1,

    Microsoft.Net Framework.

    Microsoft.NET Framework

    , MS.NET Framework

    MS.Net, .Net

    [1].

    MS.NET Framework

    (. . 2) (Common Language Runtime CLR)

    MS.NET Framework.

    :

    , , , , -

    , ..,

    ,

    SQL-, ADO.Net XML ,

  • Common Language Runtime (CLR)

    .Net Framework

    Web Services Web FormsWindows Forms

    . 2. MS.NET Framework

    Windows Forms, Windows-

    , Windows,

    Web Forms,

    Web-,

    ,

    Web Services,

    -, .

    MS.NET Framework (. . 2)

    (Common Language Runtime CLR).

    Common Language Runtime

    , CLR

    MS.Net [1,2].

    CLR , ,

    . CLR

    ,

    ( ).

    CLR

    MS.Net :

    ,

    MS.Net, Microsoft

    (Common Intermediate Language CIL). ,

    , - ,

  • , CIL

    . , CIL -

    , ()

    ,

    CIL,

    MS.Net, (assembly),

    - (Portable

    Executable PE). (.Net

    ) .Net , ,

    , MS.Net.

    , exe dll

    CIL ,

    MS.Net (

    , , ..),

    ,

    CLR JIT- (Just-In-

    Time compilers),

    (CIL-) (native) .

    CLR (. . 3):

    .Net

    CLR, ,

    ( Main), CLR

    ,

    . ,

    (

    ,

    , JIT-),

  • , , , , ..

    JIT-

    (PE-)

    . 3. CLR:

    JIT-

    CIL- .

    , , (,

    ),

    JIT- CIL-,

    .

    , ,

    . ,

    (, ,

    ).

    , , CLR

    (pre-JITing),

    CLR. (. . 3)

    , , .

  • MS.Net

    C++ , C++ (Managed C++ -

    ++ Microsoft.NET): // Managed C++ #using using namespace System; void main() { Console::WriteLine(C++ Hello, World!); }

    , C++ -

    , #include

    #using. #using ,

    , .NET. #using ,

    using . ,

    System, , ,

    Console.

    main() ,

    WriteLine() Console,

    .

    .

    Visual Studio .NET, :

    cl hello.cpp /CLR /link /entry:main

    hello.exe, , , CLR

    , .

    C# C# Microsoft

    Microsoft.Net

    C++ Java. C#

    , Microsoft C#

    MS.Net..

    C# // C# using System; class MainApp { public static void Main()

  • { Console.WriteLine(C# Hello, World!);

    } }

    C# ++ ,

    .cs. using

    Managed C++,

    , .

    C# :

    csc hello.cs

    VB.Net , Hello, World Visual Basic .NET Rem VB.Net Imports System Public Module modmain Sub Main() Console.WriteLine(VB Hello, World!)

    End Sub End Module , Visual Basic

    C#, (

    C#).

    PE- :

    vbc /t:exe /out:hello.exe hello.vb

    , -

    Console WriteLine()

    . , -

    ,

    ,

    .

    MS.Net

    ,

    ,

    ,

    . (

  • )

    .

    Pascal C, Unix Windows,

    -

    C++, ,

    Java, ..

    Microsoft.Net ,

    .

    , , Microsoft,

    - . .Net,

    ,

    . , MS.Net

    "" ,

    .

    ,

    MS.Net (

    ,

    MS.Net):

    - MS.Net

    , ,

    (C#, C++, VBasic.Net, Java# .).

    , -

    ,

    . , ( ,

    , )

    ,

    MS.Net

    -

    - ,

    ,

  • MS.Net

    - ,

    - MS.Net

    ,

    Web-, Web-,

    " " -

    .

    , ,

    MS.Net

    MS.Net.

    MS.Net

    (., [1-2]),

    [3-4] .

    1. . C++/C# Visual Studio .NET 2003. .:

    -, 2004.

    2. ., . .NET. , 2- . .: -,

    2003.

    3. . Microsoft .NET Framework. .:

    " ", 2002.

    4. . Microsoft .NET .: " ", 2003.

    MS.NET Microsoft.NET Framework Common Language Runtime MS.Net C++ C# VB.Net

    MS.Net

Recommended

View more >