??????????? ?? ??????????? .NET ? .NET Framework - PowerPoint PPT Presentation

About This Presentation
Title:

??????????? ?? ??????????? .NET ? .NET Framework

Description:

.NET Framework .NET .NET Framework – PowerPoint PPT presentation

Number of Views:154
Avg rating:3.0/5.0
Slides: 46
Provided by: Svetli8
Learn more at: https://www.devbg.org
Category:

less

Transcript and Presenter's Notes

Title: ??????????? ?? ??????????? .NET ? .NET Framework


1
??????????? ?? ??????????? .NET? .NET Framework
???????????? ?? .NET Framework
??????? ?????
?????????? ???????? ?? ?????????? ?? ???????
academy.devbg.org
2
??????????
  1. ????? ? .NET?
  2. ??????????? ?? ??????????? Microsoft .NET
  3. ????? ? .NET Framework?
  4. ??????????? ?? .NET Framework
  5. Common Language Runtime (CLR)
  6. ?????????? ???
  7. ???????? ???? MSIL
  8. ????????? ? ?????????

3
?????????? (2)
  1. .NET ??????????
  2. Application domains
  3. Common Language Specification (CLS), Common Type
    System (CTS)
  4. Common Language Infrastructure (CLI) ?
    ???????????? ?? ???????? ?????
  5. Framework Class Library
  6. ??????????? ????? ?? ?????????? Visual Studio

4
??????? ?? Microsoft ?? .NET
  • ???????????
  • ?? ????? ??????????
  • ?????????
  • ?? ????? ?????

XML Web ???????????????? ?? ?????? ????????? ?
????????????
???????????
????????????
???????
???????
??????
??????? ??????????? ?????????????? ?? ???????
?????????? ?? ??????? ? ?????????
?????????? ?? ??????????
?????????? ?? ???????
5
????? ? ??????????? .NET?
  • ?????????? ?? ??????????
  • ???????? ?????? ? ????????????
  • ????????? ? ?? ????? ??????????
  • ??????????????? ?????????????? ?? ??????????,
    ?????????? ? ??????? ?? ????????? ?????????? ?
    ??? ??????
  • ??????? ?? Microsoft ?? ?????????? ?? ???????????
    ??????????
  • ?????????, ????? ???????? ???? ?????

6
????? ? .NET Framework?
  • ????????? ?? ?????????? ? ?????????? ?? .NET
    ?????????? ? Web ??????
  • ????? ?? ???????????? ?????????? ?? ??????????
    ???
  • ????????? ?????, ?????????? ?? ??????? ? ??????
    ?????????????? ?? ??????????
  • ???????????? ?? ??????? ?? ????????????
  • .NET Compact Framework
  • ????????? ?? ?????????? ? ?????????? ?? .NET
    ?????????? ?? ??????? ??????????

7
????? ? .NET Framework 2.0?
  • ?????? 2.0 ?? .NET Framework ??????? ?????
    ?????????? (?????? ?????? 1.1)
  • ?????? 2.0 ?? ????? C ??????????????? ??????
    (generics), ?????? ??????
  • ASP.NET 2.0 master pages, ???? ????????,
    ????????? ?????? ? ???? ?? ?????, ??-?????
    ??????????
  • ADO.NET 2.0 ???? ??????????
  • Windows Forms ???? ??????????

8
?????????? ?? .NET Framework
  • Common Language Runtime (CLR)
  • ????? ?? ???????????? ?????????? ?? ????????? ???
    ???? ???? ????????? ??????
  • ????????? .NET ????????????
  • Framework Class Library (FCL)
  • ?????????? ?????????? ?? ??????? ?? ?????????? ??
    .NET ??????????
  • ?????????? ????????? ?????????????? ??
    ?????????? ADO.NET, XML, ASP.NET, Web Services,
    Windows Forms, ...

9
??????????? ?? .NET Framework
  • ?? ????????? ?????????, ????????? ? ?????????????
    ?? ????????
  • ????????? ?? ???????????? ????? ?????? (?????,
    COM, MSMQ, IIS, WMI)
  • CLR ? ??????? ?????? ? ??

??????????? ???????
10
??????????? ?? .NET Framework (2)
  • CLR ????????? ??????? ?? ?????????? ?? .NET ???
  • ????????? ???????, ???????????????, ???????????,
    ...

Common Language Runtime
??????????? ???????
11
??????????? ?? .NET Framework (3)
  • ?????? ???????-??????????? ?????????? ? ???????
    ???????
  • ????????, ????-?????, ???????????????, ?????? ?
    ?????, ?????????? ?????????, ?????????,
    ??????????????,

Base Class Library
Common Language Runtime
??????????? ???????
12
??????????? ?? .NET Framework (4)
  • ?????? ?? ???? ?? ?????
  • ??????? ? ????????? ????? ?? ??????? (DataSets)
  • ????? ????????? ?? XML

ADO.NET and XML
Base Class Library
Common Language Runtime
??????????? ???????
13
??????????? ?? .NET Framework (5)
  • ????????????? ????????? ?? ???????????? Web
    ???????, Windows GUI, Web ??????,

ASP.NET Web Forms Web Services Mobile Internet
Toolkit
Windows Forms
ADO .NET and XML
Base Class Library
Common Language Runtime
??????????? ???????
14
??????????? ?? .NET Framework (6)
  • ???? ?? ???????????? ?? ?????!


Delphi
C
C
VB.NET
J
Perl
Common Language Runtime
??????????? ???????
15
Common Language Runtime (CLR)
  • ???????? ???? ????? ?? ??????????? ??????????
    (Managed Execution Environment)
  • ????? ?? ???????????? ?????????? ?? ??????????
    .NET ????????? ???
  • ???? ??????? ?? ????????? ?????? (???? JVM)
  • ?? ? ????????????? ???????? ?? ?????????? ??
    ????? ?? ?????????? (JIT ??????????)
  • ???????? ? ? ????????????? ??????????

16
?????? ? ???????????? ?? CLR
  • ???????????? ?? IL ???? ? JIT ????????????
  • ?????????? ?? ??????? ? ????????? ?? ????????????
  • ?????? ?? ????????
  • ?????????????? ? ??
  • ?????????? ?? ???????????
  • Code access security
  • Role-based security

17
?????? ? ???????????? ?? CLR (2)
  • ?????????? ?? ????????????
  • ?????????? ?? ??????????????? ??????????
    ??????????? ?????????? ?? ????? (threads)
  • ???????? ? ???????????? ???
  • ????????? ?? ????????? ?? debug ? ????????????
    (profiling) ??? ?????????? ?? ??????????

18
??????????? ?? CLR
Base Class Library Support
Thread Support
COM Marshaler
Type Checker
Exception Manager
Security Engine
Debug Engine
IL to Native JIT Compiler
Code Manager
Garbage Collector
Class Loader
19
?????????? ??? (Managed code)
  • ?????, ????? CLR ?????????
  • ???????????? ????????? ??? ?? ????? ?? ????? ????
    MSIL (Intermediate Language)
  • ?????? ?? ?? ?????????
  • ???????? ?? ???????, ??????????, ????????,
    ??????, ??????, ?????????
  • ???????? ?? ???????????
  • ??????????, ???????? ?? ????? .NET ????, ??
    ?????????? ?? ?????????? ??? (MSIL)

20
?????????? ??? (2)
  • ???????-??????????
  • ??????? ?? ?????????? ?????? ? ?????? (type-safe)
  • ???????
  • ????????
  • ????????? ?????????? ????? ???????? ????? ??
    ????????????
  • ????????? ??????????? ????? ???????? ?????????

21
???????????? ??? (Win32 ???)
  • ???? ?????? ?? ??????? ? ????????
  • ??????? ???????? ??? ???????????
  • ??????? ???????? ? ????????????
  • ?? ??????? ?????????, ????? ?? ???????
  • ????????? ?? ?? ??????? ??????? ???
  • ?????? ?? ??????? ?? ????? ?????????

22
?????????? ?? ???????
  • CLR ??????????? ????????? ???????
  • ?????????-?????????? ?????? ?? ?????????? ? ?.
    ???. managed heap
  • ?????????????? ?????? ?? ????????? ??????????? ??
    ?. ???. garbage collector
  • ????? ?? ???-??????????? ???????? ?
    ?????????????? ?? ????? ??????????
  • ?????? ?? ????? (memory leaks)
  • ?????? ?? ?????????? ??? ???????????????? ?????
  • ???????? ?? ????????? ???? ??????????

23
Intermediate Language (MSIL, IL, CIL)
  • ???? ?? ????? ???? (??????? ????)
  • ??????? ???????????
  • ???? ????????, ?? ? ???????-???????????
    ???????????
  • ?????????? ?? ???????? ?? ?????
  • ?????????? ?? ????????????? ? ????????? ??
    ??????????
  • ?????????? ?? ????????? ?? ????????? ?????
  • ????????? ?? ?? ??????? ??? ?? ???????????
    ?????????

24
???????? ???????? ?? ????? MSIL
.method private hidebysig static void Main() cil
managed .entrypoint // Code size 11
(0xb) .maxstack 8 ldstr "Hello, world!"
call void mscorlibSystem.ConsoleWriteL
ine(string) ret // end of method
HelloWorldMain
25
?????????? ? ??????????
??????????
Assembly (.EXE ??? .DLL ????)
- ?????? ????? ????? ?? ?????? ?? ????? ???
??????????
- ????????????? ??? ???????????
26
??? CLR ????????? MSIL?
trusted code
???? ?????????? ???
????????? ?? ???????????? ?????
??????????
27
.NET ????????? (Assemblies)
  • ????????? ?????????? DLL ? EXE ???????
  • ???-??????? ??????? ?? ??????????????? ? CLR
  • ???? ???????? ????? ?? ????????
  • ???? ????????? ? ???????? (DLL hell)
  • ????????? ?? ???????? ?????? ?? ???? ? ????
    ???????
  • ???????? ?????????

28
??????????? ? ???????????
???????? ?? ????????
???????, ??????????, ?????? ?????? ???????,
?????????????? ?????????? ????-??????????,
???????? ??????, ????????? ?? ????????, ???????
???????? ????????
???????? ?? ?????????
??? ?????? ???????????
?????? ??????
??????????? ?? ????? ????????? ????? (security
permissions) ???????????? ??????
29
.NET ????????????
  • ?????????????? ????????? ???????
  • ??????? ?? ?? ???? ??? ??????? ?????????
  • ?????????? ?? ? ?????? ????????, ??? ??????
    ??????????? ?? ????????????
  • ?????????? ?????????? ????????? ???????? ??????
    ?? ?????? ?????????
  • ???? ????????
  • ????? ??????????, ???????????? ? ??????????

30
????????? ?? ????? ????? ? CLR
  • Common Language Specification (CLS)
  • ?????????? ?? ???????, ????? ?????? .NET ????? ??
    ????????? ?? ???????
  • ??????????? ??????????? ?????????? ?? ?????? .NET
    ?????
  • ????????? ???????????? ????? ???????
  • Intermediate Language (MSIL)
  • Common Type System (CTS)
  • ???? ??????? ?? ?????? ?? ?????? .NET ?????
  • ????????? ???????????? ?? ???????

31
Common Language Specification (CLS)
  • ???? ??????? ???????????? (CLS)
  • ??????? ?? ??????? ? ??????????, ?? ?????
    ????????? ?????? .NET ?????
  • ????????? ???????????? ? ????? ??????????????
    ????? .NET ???????
  • ???????? CLS ?????? ?????? .NET ????? ?? ??
    ???????-???????????
  • ??? ?????????? ?? ???????????? ?? CLS ?????????
    ??????? ?? ???? ???????????? ? ??????? .NET ?????

32
Common Type System
  • ???? ??????? ?? ?????? (CTS)
  • ???????? ???????????? ?? CLR ?????? ????? ?
    ???????? ??? ???
  • ????????? ???????????? ?? ??????? ?????
    ?????????? .NET ?????
  • String ? C ? ?????? ???? String ??? VB.NET ? ?
    J
  • ?????????? ? ?????????? ??????
  • ?????? ?????? ?????????? System.Object
  • String ? ?????????? ???

33
Common Language Infrastructure
  • ??????????????? ???? ?? CLR
  • ???????? ISO 232712003
  • ?????? ??? ??????????, ???????? ?? ????????
    ?????, ????? ?? ?? ?????????? ? ???????? ?????
    ??? ?? ?? ???????? ? ?????????????
  • .NET Framework ????????????? ?? CLI ?? Windows
  • Mono ????????????? ?? CLI ?? UNIX ? Linux
    http//www.mono-project.com/

34
?????????????? ? CLI
  • Common Language Specification (CLS)
  • Common Type System (CTS)
  • Common Intermediate Language (CIL)
  • ?????????? ?? ??????????
  • ????????? ? ?????????
  • ????? ?? .NET Framework Class Library
  • ?? ?????? ? ???????????????!

35
.NET ???????
  • ?????, ???????????? ?? Microsoft
  • C, C, J, VB.NET, JScript
  • ????? ?? ????? ??????????
  • Object Pascal, Perl, Python, APL, COBOL, Eiffel,
    Haskell, Oberon, Scheme, Smalltalk
  • ??? ?? ???????? ????? ? ???? ??????
  • ???????????? ? ????????, ? ?? ????????
  • ???????????? ??????????? ?? ?????? ? ??????????
    ?? ??????????
  • ?????? ??????? ?? ??????, ????????? ????? ?
    ?????????? ?? ???????

36
?????? C
  • ??????? ????? C, Java ? Delphi
  • ??????? ??? ???????????-??????????o ????????????
  • ??????????, ???????? ? ???????
  • ??? ????? ????????? ?? C/C
  • XML-???????? ????????????
  • ???????? ?? GUI ? Web ??????????
  • ? C ?????? ? ?????!
  • ???????????? ?????? ???? ?? ??????
  • ????. 5.ToString() ? ??????? ?????????
  • C ? ?????????????? ?? ECMA ? ISO

37
?????? C ??????
using System class HelloWorld static void
Main() Console.WriteLine("Hello,
world!")
38
Framework Class Library (FCL)
  • Framework Class Library ? ???????????? ??????????
    ?? .NET Framework
  • ?????? ?? ??

39
???????? ?? ???????????? FCL
System.Web
System.Windows.Forms
Services
UI
Design
ComponentModel
HtmlControls
Description
WebControls
Discovery
Protocols
System.Drawing
Caching
Security
Drawing2D
Printing
Configuration
SessionState
Imaging
Text
System.Data
System.Xml
ADO
SQL
XSLT
Serialization
Design
SQLTypes
XPath
System
Collections
IO
Security
Runtime
InteropServices
Configuration
Net
ServiceProcess
Remoting
Diagnostics
Reflection
Text
Serialization
Globalization
Resources
Threading
40
Visual Studio
  • ??????????? ????? ?? .NET ??????????
  • ?????? ????????
  • ????? ???????
  • ?????????? ? SQL Server ? IIS
  • ????? ????????? ?? ??? ??????
  • ????????? ?? .NET ??????????
  • ?????????? ?? ??????????? ? ????????? ?? ????
    ?????????

41
Visual Studio (2)
  • ???????? ???????????? ???????????-???????????,
    ???????? ?? ???????
  • ???????? ????? C, C, VB.NET ? J
  • ?????? ? ?????????? ? ???????????? ???
  • ??????? ????????? (wizards) ? ?????????
  • Windows Forms Designer
  • ASP.NET Web Forms Designer
  • ADO.NET DataSet Designer
  • ?????? ????? ?????? ??????

42
??????? ?? Visual Studio 2005
43
??????????? ?? ??????????? .NET ? .NET Framework
????????
http//academy.devbg.org/dotnet/
44
??????????
  1. ??????? ???????? .NET Framework. ?? ?????
    ?????????? ?? ?????? ???
  2. ????? ???????????? ??????? ?? ????????????
    ?????????? ?? ????????? ??? Common Language
    Runtime (CLR)?
  3. ????? ????????????? .NET ???????????
    (assemblies)?
  4. ????? ?????????? ???????? ?? ??????????? ?
    ????????????
  5. ????? ?? .NET ?????????????
  6. ???????? ??????? ?? ?????????? ?? ???? ???????.
  7. ????? ? ?????????? ???? ??? ?? ??????? ?? ????
    ????????? ?????? ???????????? native ???? ????? ?
    ?????????? ?? ????? MSIL?

45
??????????
  1. ????? ? Common Language Specification (CLS)? ????
    ? ?????????? ???
  2. ????? ???????????? ?????? ??????? ?? ?????? ?
    .NET Framework (Common Type System)?
  3. ???????? ??????? ?? .NET ???????. ????? ? ??????
    ????? ????
  4. ????? ? Framework Class Library (FCL)? ?????
    ?????????????? ???????? ???
Write a Comment
User Comments (0)
About PowerShow.com