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



Download 21,46 Mb.
Pdf ko'rish
bet674/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   670   671   672   673   674   675   676   677   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition



Source Code

The GenericInterface project is located under the Chapter 10 subdirectory.

This wraps up our initial look at building custom generic types. In the next chapter, we will pick

up the topic of generics once again, when we examine the .NET delegate type.



Summary

This chapter began by examining the use of the “classic” containers found within the System.

Collections namespace. While these types will still be supported for purposes of backward compat-

ibility, new .NET applications will benefit from instead making use of the generic counterparts

within the System.Collections.Generic namespace.

As you have seen, a generic item allows you to specify “placeholders” (i.e., type parameters)

that are specified at the time of creation (or invocation, in the case of generic methods). Essentially,

generics provide a solution to the boxing and type-safety issues that plagued .NET 1.1 software

development. In addition, generic types by and large remove the need to build custom collection

types.


While you will most often simply make use of the generic types provided in the .NET base class

libraries, you are also able to create your own generic types. When you do so, you have the option of

specifying any number of constraints (via the where keyword) to increase the level of type safety and

ensure that you are performing operations on types of a “known quantity.”

C H A P T E R   1 0  


Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   670   671   672   673   674   675   676   677   ...   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