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


Viewing (Partial) Metadata for the Car Type



Download 21,46 Mb.
Pdf ko'rish
bet1016/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   1012   1013   1014   1015   1016   1017   1018   1019   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

Viewing (Partial) Metadata for the Car Type

Here is a partial dump of the Car type that illustrates the following:

• How fields are defined in terms of .NET metadata

• How methods are documented via .NET metadata

• How a single type property is mapped to two discrete member functions

TypeDef #3

-------------------------------------------------------

TypDefName: CarLibrary.Car

(02000004)

Flags     : [Public] [AutoLayout] [Class] [Abstract] [AnsiClass]  (00100081)

Extends   : 01000002 [TypeRef] System.Object

Field #1

-------------------------------------------------------

Field Name: petName (04000008)

Flags     : [Family]  (00000004)

CallCnvntn: [FIELD]

Field type:  String

...

Method #1



-------------------------------------------------------

MethodName: .ctor (06000001)

Flags     : [Public] [HideBySig] [ReuseSlot] [SpecialName]

[RTSpecialName] [.ctor]  (00001886)

RVA       : 0x00002050

ImplFlags : [IL] [Managed]  (00000000)

CallCnvntn: [DEFAULT]

hasThis


ReturnType: Void

No arguments.

...

Property #1



-------------------------------------------------------

Prop.Name : PetName (17000001)

Flags     : [none] (00000000)

CallCnvntn: [PROPERTY]

hasThis

ReturnType: String

No arguments.

DefltValue:

Setter    : (06000004) set_PetName

Getter    : (06000003) get_PetName

0 Others

...


First, note that the Car class metadata marks the type’s base class and includes various flags

that describe how this type was constructed (e.g., [public], [abstract], and whatnot). Methods

(such as our Car’s constructor) are described in regard to their parameters, return value, and name.

C H A P T E R   1 6  




Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   1012   1013   1014   1015   1016   1017   1018   1019   ...   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