Вы находитесь на странице: 1из 21

FRAMEWORK

OUR GROUP

Arvind Vishwakarma Amit Dwivedi

Kirti Chadda
Tanu Sharma

Kapil Sharma
So what is
.NET?
Ø.Net is a platform that provides a standardized
set of services.
Ø
vIt’s just like Windows, except distributed over the Internet.

vIt exports a common interface so that it’s program can be run on any
system that supports .NET.

ØA specific software framework

vIncludes a common runtime


. NET Framework
ØProgramming model for .NET
Ø
ØPlatform for running .NET managed code in a virtual machine
Ø
ØProvides a very good environment to develop networked applications
and Web Services
Ø
ØProvides programming API and unified language-independent
development framework
The Core of .NET Framework
ØCommon Language Runtime

vGarbage collection
vLanguage integration
vIntegrated security
Ø
ØFramework Class Library
v
vProvides the core functionality:
ASP.NET, Web Services, ADO.NET, Windows Forms,IO
XML,etc

v
Common Language Runtime
ØMemory management, thread management,etc
Ø
ØConvert the .NET Managed Code to native code
Ø
ØControls the interaction with the Operating Syste.

Common Language Runtime

Operating System
Framework Class Library
ØObject-oriented collection of reusable types
Ø
ØCollections, I/O, Strings, …

.NET Framework (Base Class Library)

Common Language Runtime

Operating System
Data Access Layer
ØAccess relational databases
Ø
ØData model
Ø
ØWork with XML

ADO .NET and XML

.NET Framework (Base Class Library)

Common Language Runtime

Operating System
ASP.NET and Windows Forms
ØCreate application’s frond-end Web-based user interface, Windows GUI,
Web services, …

ASP .NET Windows


Web Forms Web Services
Mobile Internet Toolkit
Forms

ADO .NET and XML

.NET Framework (Base Class Library)

Common Language Runtime

Operating System
Programming Languages
ØUse your favourite language

VB.
C++ C# NET
Perl J# …
ASP .NET Windows
Web Forms Web Services
Mobile Internet Toolkit Forms

ADO .NET and XML


.NET Framework (Base Class Library)
Common Language Runtime
Operating System
Visual Studio.NET

VB.
C++ C# NET
Perl J# …

Visual Studio .NET


ASP .NET Windows
Web Forms Web Services
Mobile Internet Toolkit Forms

ADO .NET and XML


.NET Framework (Base Class Library)
Common Language Runtime
Operating System
Common Language Infrastructure
ØDefines an environment that allows multiple high-level languages
to be used on different computer platforms without being re-written
for specific architectures.
Ø
ØFour Aspects:
•Common Type System
•Metadata
•Common Language Specification
•Virtual Execution System
Native Code
ØOperating System-independent

ØAlso known as Managed Code, that is, the language’s functionality is


managed by the .NET Framework.
Common Type System
ØSet of types and operations that are shared by all CTS-compliant
programming languages.
Ø
ØDefines how types are declared, used, and managed in the runtime,
and is also an important part of the runtime’s support for cross-
language integration.
Just In Time ( JIT ) Compiler
ØConverts the Microsoft Intermediate Language (MSIL) code into native
code to the Operating System (OS).

ØWorks based on the architecture of the OS.


(same Microsoft Intermediate Language (MSIL) can be executed on
different Operating Systems without rewriting the source code. )
Assembly
ØA logical collection of one or more exe and dll file containing an application’s
code and resources.

Ø.NET assemblies contain code in CIL(Common Intermediate Language), which


is usually generated from .NET languages, and then compiled into machine
language at runtime by the CLR just-in-time compiler.

ØAn assembly can consist of one or more files. Code files are called modules.
How CLI works?

.NET Compatible Language

Independent Compilation

Convert Compile Source to CIL


(through JIT)

Convert CIL to machine code

This is machine code


How . NET Works?
ØMicrosoft .NET languages Source Code are compiled
1.Microsoft Intermediate Language (MSIL)
2.Metadata (stored in Manifest file)

ØCommon Language Runtime (CLR) uses metadata to locate and load classes,
generate native code, provide security, and execute Managed Code.
How . NET Works?
Source code

.NET
Compiler

MSIL CLR
-------- --- OUTPUT
Metadata [JIT]
Code Access Security
ØMost software comes from web. A user doesn’t know whether a Web code
is safe or not.

Ø.NET allows an administrator to specify privileges that each managed code


has.

ØYou can specify these privileges in three level by modifying XML-based files
vEnterprise
vMachine
vUser
o u
y
n k
h a
T

Вам также может понравиться