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



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

The Necessity of Type Metadata

The ability to fully describe types (classes, interfaces, structures, enumerations, and delegates)

using metadata is a key element of the .NET platform. Numerous .NET technologies, such as object

serialization, .NET remoting, XML web services, and Windows Communication Foundation (WCF),

require the ability to discover the format of types at runtime. Furthermore, cross-language interop-

erability, numerous compiler services, and an IDE’s IntelliSense capabilities all rely on a concrete

description of type.

Regardless of (or perhaps due to) its importance, metadata is not a new idea supplied by the

.NET Framework. Java, CORBA, and COM all have similar concepts. For example, COM type

libraries (which are little more than compiled IDL code) are used to describe the types contained

within a COM server. Like COM, .NET code libraries also support type metadata. Of course, .NET

metadata has no syntactic similarities to COM IDL.

Recall that the ildasm.exe utility allows you to view an assembly’s type metadata using the

Ctrl+M keyboard option (see Chapter 1). Thus, if you were to open any of the *.dll or *.exe assem-

blies created over the course of this book (such as the CarLibrary.dll created in the previous

chapter) using ildasm.exe and press Ctrl+M, you would find the relevant type metadata (see

Figure 16-1).

523

C H A P T E R   1 6

8849CH16.qxd  10/9/07  4:27 PM  Page 523



Figure 16-1.

Viewing an assembly’s metadata

As you can see, ildasm.exe’s display of .NET type metadata is very verbose (the actual binary

format is much more compact). In fact, if I were to list the entire metadata description representing

the CarLibrary.dll assembly, it would span several pages. Given that this act would be a woeful

waste of paper, let’s just glimpse into some key metadata descriptions of the CarLibrary.dll

assembly.




Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   1009   1010   1011   1012   1013   1014   1015   1016   ...   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