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



Download 21,46 Mb.
Pdf ko'rish
bet940/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   936   937   938   939   940   941   942   943   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

Assemblies Promote Code Reuse

As you have been building your Console Applications over the previous chapters, it may have

seemed that 

all of the applications’ functionality was contained within the executable assembly

you were constructing. In reality, your applications were leveraging numerous types contained

within the always accessible .NET code library, mscorlib.dll (recall that the C# compiler references

mscorlib.dll automatically), and in the case of some examples, System.Windows.Forms.dll.

As you may know, a 

code library (also termed a class library) is a *.dll that contains types

intended to be used by external applications. When you are creating executable assemblies, you will

no doubt be leveraging numerous system-supplied and custom code libraries as you create the

application at hand. Do be aware, however, that a code library need not take a *.dll file extension.

It is perfectly possible for an executable assembly to make use of types defined within an external

executable file. In this light, a referenced *.exe can also be considered a “code library.”

Regardless of how a code library is packaged, the .NET platform allows you to reuse types in a

language-independent manner. For example, you could create a code library in C# and reuse that

library in any other .NET programming language. It is possible to not only allocate types across lan-

guages, but also derive from them. A base class defined in C# could be extended by a class authored

in Visual Basic. Interfaces defined in Pascal .NET can be implemented by structures defined in C#,

and so forth. The point is that when you begin to break apart a single monolithic executable into

numerous .NET assemblies, you achieve a 

language-neutral form of code reuse.


Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   936   937   938   939   940   941   942   943   ...   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