0 ratings 0% found this document useful (0 votes) 21 views 34 pages Unit 1
The document discusses the .NET framework, detailing its application types including console, window, and web applications. It explains the framework's capabilities for developing and running applications across different environments, emphasizing its support for multiple programming languages and features like memory management and exception handling. Additionally, it highlights the structure of assemblies and the Common Language Runtime (CLR) that facilitates code execution and management.
AI-enhanced title and description
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here .
Available Formats
Download as PDF or read online on Scribd
Go to previous items Go to next items
Save .NET unit1 For Later WET Seared ton Nekwork FEnab Jed “‘Techne
Th which # (dst) a ii end les ;
TE was developed by micro 4E rn :
Wolk fae a Plak boar (08) dependent
ing Str
0 (a2 }ramewon kc ( Auppot? 4 ;
it framework (onkoirys Cojlechors
| class BB om ( predspined claws )
“Types 4 Applicaon
There ane thee bypes oh applicaten
in «Nek.
ke Console Pipplicadon
2. window Application
3. web Applicahon
Console
Runs on Disk opeat System (Dos)
No graphical Dsex inkeadace (ow!)
Text based inpuk w& text based ouk puk .
Pie Testing ann pplica hin.
Windle g } -
Run on window 08, Betlen
User inkerface 6}
Needed Ex
qn Ik
ngle User applicn hes | No inbesmd-
Ms obbice | Nokepad > Calta bly
wel
Runs on web senven h eek, - bi,
| Page Batedgertinse| sic beh ‘ » depamie ie :
intesnet need eo} Ee t oy alee Use opplicalin
é a
: nat
Ex" Weber: 0 % 570K
Trbswduction a NET Framewo ;
eases
t
gee framework 18 oa mult? Tangeeqs environmen
eros taxperorkion This 78 used to :
ling, -deplaying ane sunning web applicat wns
a applicak ton :
eh windows FB biiddews NT ho
as < a "
' : LCi aay a
daly fram to veomboe Teneo
Liha,
Framework we
Sa 2 Se ac
a es |
lak foomn Supports number
as ett, p Seppe, NEP en
. SOLO | wep. Sagano eS
ioe
7
eG ndependent a
.‘ “ Ppplioains wie € _peatke le
-NET Compiler. bo FO a plakfoorn
oe Cade called porkable
Feecbliaey.t PD:
~ These PES Can i irplernent-ed in all
hetdware anchibectine .
E
di
“yah
Commen an. Ho Liege 5
Commer language 4 eh C 7us > hs
ee
cements fn A peer. plakfoum
gf NET. applitation
ae ‘ea exe skis —
number of A i
be bus ihn | web
9J
| anqueg
aa
The follauing figure Shows the by pical
axchikeekwie g the NET griamnensor™
=)
| va.ner| [cw | |sseszp4 7 _| Vo HNET
Rs, {
Web forms, Sister Windows doors
eden Se ee c " |
a
LWE frei cles Bbreny |
I. ‘NET Janguege i-
“NET Jangueges NET framework ooichtheelr
Hee Janguacjes HEN be bop Auch os VB+NE!,
. CH , V8H# | vert NET Develspets can develop
| ppl eod-tons puch ab Windows forms i
| web foams » windows Bewvices and Yuh web
envicek- Sti oes
The user Can coteake Aowice Code
files Usin “NE bea TBioqraremin
| Wipe | 7 NS prov 4
anguerem i
Then the Corviespondin “Compil & checks
the Synkax and analyze the Aowice ile,
ave nresulk 73 a Managed reel iae
a —itleSalsa ict ener
encecut ible “Lee 1*fe
“A managed tv
¢
windows portale )
tha can’ be executed by ot ofhon OF
oo" the qubere
amewenk Class class libra - -
Jiboees Bait Conca & Lot +
at ie thet all the oppl foations
yp NET and vicual gbuclio - NET
Auch as windows foouns
pre ea
—
cpenbel | fn
will use Beppe s.
WISP: - NET web dors an
and Ria: web. Caines onte developed ey
the classes ir this Sere Bboy.
138 Tibetexuy 1s oxgerized in
pamesp ace -
ass |i btasties inoplement
4 Conumore functor -
eng and wieid. graphic, ~
d windows AA ces
oe
OW
Bue hhHbeteouy (Bek) inc lados
Ah he» entire, class |rhs,
de of. Classes bhak
ag ‘the Common
an dip. and oplon 4
‘ be. Botte Fe the Bet
ihn! anagem aiqhrouvgh Lhe Conmon }ypé here
the» Coole emetuted fn
* erst es hal
Cpele ae ac c«
Aale Shvinoment by enforcing
Ae cul .
_ Pevelepers UBing the CLR uisithe Code fn.
Seam rat uals C02 NEI
ave inapilen tre vce. Migr Corp) on
Convott Buch ayde Sin Bo ClL Code. AL »unkime ,
fhe obR'S just in Hime
the clk Cede inko Code nabive to the 65,
Compiler etl
TE 18 alsoe provides other Im ont
mest
envices Auch as memory imanegemen ;Langage Rinne Cena) fs
pened This acts om on
a
and Lhe
men i bested|
Code .
Sousice
Cold fe ae 1
lan ages Auch Os for Vee J
fo by the cre) aLed Com pi :
Inko Panag ed modulesAent Inside
These modules |e
cre and exeule d
Sine the man
frside the CIR,
—c teres | clk.
L se, _unmen Bh tode ices pot
he Che Cannot Use onp .UE
thad
Code one execu
%;, Cap Ulse “all Ehe
welt: 7 tun 8 enkinely
‘ aL gethh. Aub bP bie’ hide ° Time Tato! "4
Mon Pant tode provides Phe . aubprnalt
Ne Erne management bay objects Brmodule,
5. Thoead peeling Ee
Thread pooling is ‘ay tbl Cc
allo us "pre et |kiple
facrenk use + pi) EIP!
Heading . '
Y one a the Eynea da betemes walle,
the Heread pee) Tajeols ate rd
Ehovead! into re Un Er Even apoortment Le
Keep a the proce sSoniy. busy.
Jase. that
6. Cnos8 Paes Tnbegratton bas
Code ef bw different a ges Auch
|O5 CH and vB. way Can be mie
withire
3 Same
SAR
= Pele “ a
‘ : abil “alte the paegreminen
bo a ees Srol i Wbioiendlin
with Phe help ap pretorpiled: BeBSE JB coy.
See RE
8. Code Access SS Seu a T ne
— + st
CLR prevents uh Eons Nael toile,
Perfor ning privileged acttons - .ne
q. Bute Oven Bun AY
CER avoids thie Oven flow When
aeeaun at Tnpe HM tare USne
Copying ’ Pn cWecked
ae Sbeicpy on Copy memony ope
sbka
: > Wien ly aah Jracige Cjenerialon Ds
. ae 18 a -Net ubil; F Which
teed Ie pol toga the ap!
icine ve Pe ies Petfonrman ce sabe
rer Dns
Bee aterslas, ol ithe Apecifics ae Lupe
= Apectic Values * sips one.bes pe. fej
© extuuli t
rey medal bho!
ness rin erBab Wein o> wont
Dior G&S She pert
¥ Tpkeq eo Pome C Conécle . Readhine <>)
cag luni-ebine fs Volue ope By "aad
Fel St
CTS ‘Suppon two general Cakeganies bape
calfed Vi ue Cake. 4& Re ference bipes -
Value alue lypes ee 7
Brveclly contain bhes, dé a and inskances
allocakel on Hye Abnek 6H Atnuekine, Volue
bape can be Butlt In, Use — detinted jOn
onuimencthion Pa Fae doh
me hs Shere nee Link xy 33
series
Pblunederence othe adders
@: fib ted on pg ies heap. &
~ EReforence pe oare be of Se Cpe,
eee , on Pn bifarce Ejper - e
class con fy I cla
== oink T a> new tottsd // anorelp od
ibaa css Ag Cobbs) —
Beck ~owrtenked programming ‘ats
i CH che fs a oa -
ee ee as Ank Used a iP vel
fin khe. Wer—<«_™™ .... §
Mek Poke
ate means daka obout oakees
les generotes Rurmben.
noe Compilet
fe bles
” Lhe Clu” sescernbly Those
“Mo ra Lie
ecniphions us classes 1 Cle44 member
ia : and. eesti oh The
& bles
nt ee oe wep Heil aah
cs o closta Len imple ibe a Sapa ae . neperences
ko rien yeaa ai, a ca _paraasee :| ocho
j langage
VB. WET
Sousice tole
| Code ( pel DLL?
[4 Heit raed AER .
ae age
CLR (Common language Saal T
sy E ie Melon hy cet | |
e py |
ne Gy, rE
a chacks
jprothod
ire.
na the che.
Mah aha
When Ehé CLR een
ls lhe mebadake into. rmemory
Lhe mekada ba a eal
Lhe mrekadaka ei
maken
efwe Eo exeue “the todo.he, odsern
Aeihiece.
Assembly:
TE Gave | the Aowice
Thbermeeliabe - language
| See Cont wins asvernbly rors ost
HOUSE Wisimelun obeub aviembliy
is o tile Efiek tS unbor
Cormpilen “Pe
eveny NEY
ole bo
An abdsemb
genaie ed by fhe
Auccosstal Compilation of
applicak wn.
ik Con be etthet a dynamic link
Hbotaey o% an erceurtable tile.
| a: 1S genexsteck only ence. ton oe
| applicab isp and Upon: euch Bubsequent
| CorepilaFwon the osserobly acts update
| Types Assemb}ios |
y 7 I pavab® Assemb
| a Dhondt as
prtvake, psa bly A un
a te a Re
as SSShorted Assembly
a bo mote } Lan are
This DS Ue
applicak oP
che Shared ap assembly
(Gqlobal pssem tly cache)
The Ge 18 * tide ig Windows
direckong fo Ghore Pear er | obser |
khak oe Apect pically deaignabed Lo be
Shered by. ol) applicator executed on
a éysiem we
will be on GiAc
.Nek qatar ewomk |, on asrerabbay
de ener the Componenti ea
i abl Vowteing ingoaabih Awepe
Mac. ene. Beet anya
ee ale
fhe evs
Br
°TEOTe a Abaok - Banest assembly
Janguagé “pba gels Convene) bo byke
lode duning exedutton 4 a setae
Machine (cir) .
DE js also called Nienobe F in Lewmed
Language lode
Native (ede }-
Nekive Coole fg tompubiy Pawgpanning
Cede)” Ehak {8 (Comptled fo sun wikh.o
Poxkiculast paoteston and if sek of
|| nsEouehorn
| NET tomptlew dan ite visual Bake,
| Ce and Javascript | anguag & pre duce
byte tode |
Just IN tine Compilen de
i
TIT means Fusk TN Time | lornpilen
hey Compiles Evarslakes Ehe
9 er aie nels
Cccle and yses the CPU avchibecline
oa Eongeb machine fo exe cul a .NET
Opplicatton Sn ks
1 15 les Gbootes | ERG: SRB Letom.
Makive Cod So Ake) Fame anew .
yenk Coll "BarseemeP yor g beda|
ifhouk the -NEY asec we
ee choore {nom arvongst a wealkh oa
PPIs oF Ji bce’ Lhak Auppont Ayal ie a
Bovices: ;
one Ce Fhe geal | phe «NET 4oramews»}
18 po brin tonamanal ty +0 .
developmen by provicling e
Se Commer clase be deve Ley
using Compilers fhak genoreb Than
stake Corman riarewo os oufnen
a ne Pye Know how to fake oalvankeae
sn ality Prema. helng.. GR
| e , you Cont Wy poxe tha E
became Ehe namespace,
at oe por
applica +ror
fotamewor k
pans UW fie One
~ eas
fh have oFThe object class Appomls eee
hake alps NET closses inhevt khwA
dtu irnokicatly provide Be thew Consumer
Nektheds™)
}. Equals >
& GretHasheode ¢ )
3, GiekType ¢)
he ToSh-¥ing ©
Fauals¢) cm
Com pasies kwo object neferences
M] dekéswmines whether Fhey ane Pepe ng
| b> the, 4ame ah
and
|| GekHash code C2.’
| Gjeks Lhe objeck 's hos
NET) hath wdes ane used” Be a
| dling for debasrnining 2
Uniqueness at eee
GreF Type CE ih
Obtazns Bho i's =, ak guinkinne
te
Ws cada)"
dec
ringCy *
EES a skving sgl 4 The.
bi ck. Noamally une tor debug _ (pliposes ,
ras ; methed Ei a phe “fal “queltfied
cullFromple is
using Syskera 5
parespace cpm
eee iieaclane se +
Sue” SAL LOA
Poti hie”
os seaseinnge
e unt G Sheek rmekhad s1E+
prisyai these et Jeoas SE he:
nthe ty ciel den Net
coat, Ww.| , at ak WET Namespaces and classe
| x sgobern a
re system Fo &
¥ System . Collae beans
* Syskem . ThoteaclingName Apa ce
mitigates name Colledions
Tnberface ‘s
opecihes the metheds and pres FE
irsple mented by object 3 tha!
Entepsulabien 7
i object Senos on SLAC ables eo
olass bo eneapawtab- ol iA loka 4 Cehaviex
7 phesi-ance he
: /
Allow & class fe abet foro a postent
class 0 Pte alt CAM yoehAs ae Sor
Lhab othe pest er class hor implemen te Hae
slicing develepment otfent and Pog tariey
ee
peliinom phism et
pesrail developers be Apecity Boa impkrnent
behaviors in a bate class Eat can be
ovens idden by a eve ohh oS Te eo ages
Excepliss handling aa
‘Allbws vse Po Wake SoARBe = fo. os
Understand Cede becauwe Tt allows ue s
copktuye al) errors. in Commoner’, Undaorsbardable
Patkein _ botal! sto Po that ep teh
Sette cols oppas that “apwihe (9)
2
Condikional blockstonsol e Pose LT Line ies Carr Tryine } be
fhrew hew oe a pe oe foil )
zh
ap
¥
Aa Lehi
tee ew bari ra
Pye Toombs ¢ a
be TemRight O93 . ke
> Ppplyprakes (>, piseb relase Vehie le
Seba.
Public Veil Tunlef E i,
“est eg te a "Vehicle buxn ha
i, a vel % aa Sab
Void Fun high | O)y
,
=
:
Vi Tuintyh ©,
Nt, Applutin th oo {Py
Sap C Frcephet re rn
bea.
SC Sa.
=.
igen i e tasking oy,
ae,ee
Con class fn VB.NET
i mpoxt syst em
Public Clams Can
Tyhei Vehicle
ovieine de public Aub Tuoin lef } ec)
Consele leske Eine ( cox Puans het} ny
Ende sub .
ott ‘pthc Aub
Console. jeite Line (Ae Con Teas reah ")
ina. eo ps i
Ppl ee ‘AB
“eas Con baying pene
Per aie 7
TuinRight C )yyowrd é
Console + |
9
overside pu
;
Plane - alll t we
bry
Vero
public
Vola TaHnR
Lire Vatel
Console - hist teLline ("Rin bot
Test "Batven fe CI 72
Havin developed Vehiele dll
ane now sea
habe Pelymosiphim ond ae?
werk eross | diffenent language F
using Syphetn
Clags Test ieuve ;
tay oils.
“plane on :
eet
ew
ae mia
V- Tustin EO)
\- Apply Brakes (5
ighk
pint beeline ( * Plane puns Mg
A pply Boa kes ( )
¢
kes bein
usec’) (
? Con dll;
bo demonsl>a
Lisp handére,
: public static ver } Maun wi
t Vehicle Gees. i Vehicle Reporence
4. ee oo
Laea
Cond’ 2 rew
Coney)
Vets
ae Tyarl [RE
Be Vie Be tea ace tek
. ae as te i