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


■ I N T R O D U C I N G   . N E T  A S S E M B L I E S 484



Download 21,46 Mb.
Pdf ko'rish
bet951/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   947   948   949   950   951   952   953   954   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

I N T R O D U C I N G   . N E T  A S S E M B L I E S



484

8849CH15.qxd  10/22/07  1:46 PM  Page 484




Figure 15-4.

A single-file assembly

A multifile assembly, on the other hand, is a set of .NET *.dlls that are deployed and versioned

as a single logic unit. Formally speaking, one of these *.dlls is termed the primary module and con-

tains the assembly-level manifest (as well as any necessary CIL code, metadata, header information,

and optional resources). The manifest of the primary module records each of the related *.dll files

it is dependent upon.

As a naming convention, the secondary modules in a multifile assembly take a *.netmodule file

extension; however, this is not a requirement of the CLR. Secondary *.netmodules also contain CIL

code and type metadata, as well as a 

module-level manifest, which simply records the externally

required assemblies of that specific module.

The major benefit of constructing multifile assemblies is that they provide a very efficient way

to download content. For example, assume you have a machine that is referencing a remote multi-

file assembly composed of three modules, where the primary module is installed on the client.

If the client requires a type within a secondary remote *.netmodule, the CLR will download the

binary to the local machine on demand to a specific location termed the 

download cache. If each

*.netmodule is 5MB, I’m sure you can see the benefit (compared with downloading a single

15MB file).

Another benefit of multifile assemblies is that they enable modules to be authored using

multiple .NET programming languages (which is very helpful in larger corporations, where individ-

ual departments tend to favor a specific .NET language). Once each of the individual modules has

been compiled, the modules can be logically “connected” into a logical assembly using the C#

command-line compiler.

In any case, do understand that the modules that compose a multifile assembly are 

not literally

linked together into a single (larger) file. Rather, multifile assemblies are only logically related by

information contained in the primary module’s manifest. Figure 15-5 illustrates a multifile assembly

composed of three modules, each authored using a unique .NET programming language.

C H A P T E R   1 5  


Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   947   948   949   950   951   952   953   954   ...   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