This print for content only-size & color not accurate 7" X 9-1/4" / casebound / malloy



Download 21,46 Mb.
Pdf ko'rish
bet958/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   954   955   956   957   958   959   960   961   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

TurboBoost() cil managed

{

// Code size       18 (0x12)

.maxstack  8

IL_0000:  nop

IL_0001:  ldstr  "Ramming speed!"

IL_0006:  ldstr  "Faster is better..."

IL_000b:  call  valuetype [System.Windows.Forms]System.Windows.Forms.DialogResult

[System.Windows.Forms]System.Windows.Forms.MessageBox::Show(string, string)

IL_0010:  pop

IL_0011:  ret

} // end of method SportsCar::TurboBoost

Notice that the .method tag is used to identify a method defined by the SportsCar type. Member

variables defined by a type are marked with the .field tag. Recall that the Car class defined a set of

protected data, such as currSpeed:

.field family int32 currSpeed

Properties are marked with the .property tag. Here is the CIL describing the public CurrSpeed

property (note that the read/write nature of a property is marked by .get and .set tags):

.property instance int32 CurrSpeed()

{

.get instance int32 CarLibrary.Car::get_CurrSpeed()



.set instance void CarLibrary.Car::set_CurrSpeed(int32)

} // end of property Car::CurrSpeed

As you can see, the get/set scopes of a property simply delegate to normal (and hidden)

methods within the assembly (get_CurrSpeed() and set_currSpeed() in this case). Again, while

most .NET developers do not need to be deeply concerned with the details of CIL, Chapter 19

will provide more details on the syntax and semantics of the common intermediate language.




Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   954   955   956   957   958   959   960   961   ...   1830




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