.NET Framework Overview - digital guide

basiliskcanoeSoftware and s/w Development

Nov 2, 2013 (4 years and 11 days ago)

98 views


What is .NET ?



.NET is a software platform that helps
in creating application by integrating
different programming languages
such as C#, Visual Basic, J#, Visual
C++



It is language
-
neutral platform for
enterprise and web development.

.NET Framework



It

is

a

development

and

execution

environment

that

allows

developers

to

create

windows

and

web

based

applications
.


It

Provides

an

integrated

development

environment

in

which

we

can

develop

applications

in

different

languages

.

.NET Framework


Microsoft introduced .NET to bridge
the gap and ensure interoperability
between applications created in
different languages.


.NET introduced in the Next
Generation Windows Services
(NGWS) project.


The various versions of the
framework appeared from 1.0 to 4.0

Benefits of .NET


Consistent Programming Model


Cross Platform Support


Language Interoperability


Automatic Management of
Resources


Ease of Development





Visual Studio IDE

Architecture of .NET Framework

Vis
ual
Stu
dio
.NE
T

LINQ

ASP.NET
3.5

ADO.NET
Framework

Additional
Enhancements

WPF

WCF

WF

Window Card
Space

C#

VB.NET

VB.NET

Other .NET
Languages

Common Language Specification

Common Type System

.NET Framework Class Library

Windows
Forms

ASP.NET

Console

ADO.NET

Common Language Runtime

Components of .Net Framework


Common Language Runtime


.NET Framework class library


Common Language Specification


Common Type System


Metadata and Assemblies


Windows Forms


ASP.NET & AJAX


ADO.NET


Windows Workflow Foundation (WF)





Windows Presentation Foundation
(WPF)


Windows Communication
Foundation (WCF)


LINQ

Common Language Runtime



It is a layer between an Application
and the Operating System. It’s a
virtual execution module


Manages running code


like a
virtual machine


Threading


Memory management


No interpreter: JIT
-

compiler produces
native code


during the program
installation or at run time


Common Language Runtime



Functionalities of CLR



Exception Handling


Debugging


Code Access Security (CAS)


Code Safety


Compilation


Code Execution



Intermediate Language


Choosing a language compiler


Compiling the code to IL also
known as MSIL


Compiling the code to Native
Code


Executing the code




.NET Framework Class Library


.NET framework consists of classes, interfaces, structures etc to speed
up the development process of applications.


All the entities of class library are bind up In namespaces


There are 20000 or more classes in framework class library all logicaly
grouped in a hierarchical manner.



Code Compilation and Execution

Compilation

Execution

JIT
Compiler

Native

Code

MSIL

Code

Metadata

Source
Code

Language
Compiler

Assemblies


DLL or EXE file


Smallest deployable unit in the CLR


Have unique version number


Contains IL code to be executed


Assembly consist of four elements:

i.
Assembly Manifest

ii.
Type Metadata

iii.
MSIL Code

iv.
Resources:
-

JPEG , Bitmaps

Metadata in Assembly

Type Descriptions

Classes

Base classes

Implemented interfaces

Data members

Methods

Name

Version


Assembly Description

Other assemblies

Security Permissions


Manifest: Standard
Elements


Manifest is table with info records


Manifest contains info about:


Assembly name


Version information


Strong name information


Culture information


Processor and OS


Files that make up this assembly


References to types and resources


Exported and local types

Windows Workflow
Foundation WF

WF is a technology introduced by Microsoft
which provide programming model for
building workflow based applications.

WF Consists of following parts:

o
Activities: receive some parameters
from the developer execute its actions
and then flow is transferred to next
activity Ex If Else .

o
Workflow Designer: Designs workflows
by placing activities within the work flow
model

o
Workflow Runtime: Executes the
activities in a workflow. It’s a light
weight and extensible engine that
reside within the .NET process.

o
Rules Engine: Enables declarative rule
based development for work flows and
for any .NET Application.



Windows Presentation
Foundation (WPF)


WPF also called Avalon provide base for
developing applications and a clear
separation between user interface and
business logic


Example of WPF Application Yahoo
Messenger


WPF introduced a language called
XAML used to design interface of WPF
application

Windows Communication
Foundation

WCF also called Indigo is a service oriented
technology for developing applications


This technology is used in the distributed
systems for conducting distributing
transactions


WCF
-
based application communicate
through Simple Object Access Protocol.



LINQ


It adds native data querying capabilities
to .NET Languages


Ex.

var

query=from s in Students where
s.Gender
=“Male”;

Select
S.Name
;

Foreach
(
var

name in query)

{

Response.Write
(name);

}



Thank You