C# 0 The Complete Reference


PART I C h a p t e r   1



Download 4,07 Mb.
Pdf ko'rish
bet47/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   43   44   45   46   47   48   49   50   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt


PART I

C h a p t e r   1 :  

T h e   C r e a t i o n   o f   C #  

9

PART IPART I



Managed vs. Unmanaged Code

In general, when you write a C# program, you are creating what is called 



managed code.

Managed code is executed under the control of the Common Language Runtime as just 

described. Because it is running under the control of the CLR, managed code is subject to 

certain constraints—and derives several benefits. The constraints are easily described and 

met: the compiler must produce an MSIL file targeted for the CLR (which C# does) and use 

the .NET class library (which C# does). The benefits of managed code are many, including 

modern memory management, the ability to mix languages, better security, support for 

version control, and a clean way for software components to interact.

The opposite of managed code is unmanaged code. Unmanaged code does not execute 

under the Common Language Runtime. Thus, all Windows programs prior to the creation of 

the .NET Framework use unmanaged code. It is possible for managed code and unmanaged 

code to work together, so the fact that C# generates managed code does not restrict its ability 

to operate in conjunction with preexisting programs.


Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   43   44   45   46   47   48   49   50   ...   1096




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish