Академический Документы
Профессиональный Документы
Культура Документы
Doncho Minkov
Technical Trainer
http://www.minkov.it
Telerik Software Academy
http://academy.telerik.com/
Table of Contents
1.
What is .NET?
Microsoft .NET platform architecture
2.
3.
4.
Managed Code
5.
6.
7.
.NET Applications
2
9.
10.
.NET Framework
Microsoft's Platform for
Application Development
versions
.NET Framework
Library (FCL)
Windows
Forms
WPF
Silverlight
WPF
Silverlight
15
The Future
16
Common Language
Runtime (CLR)
The Heart of .NET Framework
machine
Responsibilities of CLR
Execution of the IL code and the JIT
compilation
Managing memory and application
resources
exceptions
Managing concurrency
controlling the
parallel execution of application threads
Managing application
isolation
Interaction with unmanaged code
Supporting
debug /
profile of .NET code
20
CLR Architecture
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
21
Managed and
Unmanaged Code
What is the Difference?
Managed Code
CLR executed code is called
managed code
metadata
Portable
type-safety
Reliability problems
Safety problems
Doesnt contain
metadata
Memory Management
CLR manages memory automatically
Memory leaks
Intermediate
Language (MSIL)
Intermediate Language
(MSIL, IL, CIL)
Low level language
.NET CLR
Has
Etc.
MSIL
29
Language
compiler
Code
Assembly
(.EXE or
.DLL file)
MSIL
Metadata
When given
method is called
for the first time
Execution
Machine
code
JIT
compiler
Pre-compilation
during the install
(NGEN)
30
.NET Applications
Assemblies, Metadata and Applications
.NET Assemblies
.NET assemblies:
32
33
Metadata in Assemblies
Type Description
Classes, interfaces, inner types, base
classes, implemented interfaces,
member fields, properties, methods,
method parameters, return value,
attributes, etc.
Assembly Description
Name
Version
Localization
[digital
signature]
.NET Applications
Configurable
Consist
Installed
by "copy / paste"
common assemblies
No conflicts due to their "strong name"
Easy installation,
between
36
.NET Languages
.NET languages
by Microsoft
by third parties
application
Cross-language
C# Language
C# Language Example
Example of C# program:
using System;
class NumbersFrom1to100
{
static void Main()
{
for (int i=1; i<=100; i++)
{
Console.WriteLine(i);
}
}
}
40
Framework Class
Library (FCL)
Standard Out-of-the-box .NET APIs
Windows
Forms
WPF
Silverlight
FCL Namespaces
ASP.NET
Web Forms, MVC, AJAX
Mobile Internet Toolkit
Windows
Forms
System.Web
System.Windows
.Forms
System.Windows.Media
System.Web.Mvc
System.Drawing
System.Windows.Markup
System.Activities
System.Workflow
System.Linq
System.Xml
System.Data.Linq
System.Xml.Linq
System.Data.Entity
43
Visual Studio
Visual Studio is powerful Integrated
programming
party extensions
46
47
,
SEO -
,
, HTML, CSS, JavaScript, Photoshop
free C# book, C#, Java, C#
" "
" cloud "
http://academy.telerik.com
Academy
academy.telerik.com
academy.telerik.com/csharp-databases
facebook.com/TelerikAcademy
forums.academy.telerik.com
49