C# 0 The Complete Reference


SortedList  contains a key, call  ContainsKey( )



Download 4,07 Mb.
Pdf ko'rish
bet950/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   946   947   948   949   950   951   952   953   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

SortedList

 contains a key, call 



ContainsKey( )

. To see if a specific 

value is stored, call 

ContainsValue( )

. To enumerate the contents of a 



SortedList

, obtain an 



IDictionaryEnumerator

 by calling 



GetEnumerator( )

. Recall that 



IDictionaryEnumerator

 is 


used to enumerate the contents of a collection that stores key/value pairs. You can obtain a 

synchronized wrapper around a 



SortedList

 by calling 



Synchronized( )

.

There are various ways to set or obtain a value or key. To obtain the value associated 



with a specific index, call 

GetByIndex( )

. To set a value given its index, call 



SetByIndex( )

.

You can retrieve the key associated with a specific index by calling 



GetKey( )

. To obtain a 

list of all the keys, use 

GetKeyList( )

. To get a list of all the values, use 



GetValueList( )

. You 


can obtain the index of a key by calling 

IndexOfKey( )

 and the index of a value by calling 



IndexOfValue( )

. Of course, 



SortedList

 also supports the indexer defined by 



IDictionary

that lets you set or obtain a value given its key.

www.freepdf-books.com



Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   946   947   948   949   950   951   952   953   ...   1096




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