C# 0 The Complete Reference


PART II C h a p t e r   2 1



Download 4,07 Mb.
Pdf ko'rish
bet803/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   799   800   801   802   803   804   805   806   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt


PART II

C h a p t e r   2 1 :  

E x p l o r i n g   t h e   S y s t e m   N a m e s p a c e    

647


public static void Sor t(TK[ ] 

k

,

                                               TV[ ] 



v

)

Sor ts a pair of one-dimensional arrays into ascending order. The 



k

 array 


contains the sor t keys. The 

v

 array contains the values linked to those keys. 

Thus, the two arrays contain key/value pairs. After the sor t, both arrays are 

in ascending-key order. 

public static void Sor t(Array 

k

, Array 


v

,

                                 IComparer 



comp

)

Sor ts a pair of one-dimensional arrays into ascending order using the 



comparison method specified by 

comp.

 The 


k

 array contains the sor t keys. 

The

v

 array contains the values linked to those keys. Thus, the two arrays 

contain key/value pairs. After the sor t, both arrays are in ascending-key 

order.


public static void

    Sor t(TK[ ] 



k

, TV[ ] 


v

,

                        IComparer 



comp

)

Sor ts a pair of one-dimensional arrays into ascending order using the 



comparison method specified by 

comp.

 The 


k

 array contains the sor t keys. 

The

v

 array contains the values linked to those keys. Thus, the two arrays 

contain key/value pairs. After the sor t, both arrays are in ascending-key 

order.


public static void Sor t(Array 

a

, int 


star t

,

                                 int 



count

)

Sor ts a range of 



a

 into ascending order. The range begins at 



a

[

star t

] and 

runs for 



count

 elements. The array must be one-dimensional.

public static void Sor t(T[ ] 

a

, int 


star t

,

                                       int 



count

)

Sor ts a range of 



a

 into ascending order. The range begins at 



a

[

star t

] and 

runs for 



count

 elements. The array must be one-dimensional. 

public static void Sor t(Array 

a

, int 


star t

,

                                 int 



count

,

                                 IComparer 



comp

)

Sor ts a range of 



a

 into ascending order using the comparison method 

specified by 

comp.

 The range begins at 



a

[

star t

] and runs for 

count

 elements. 

The array must be one-dimensional.

public static void Sor t(T[ ] 



a

, int 


star t

,

                                      int 



count

,

                                      IComparer 



comp

)

Sor ts a range of 



a

 into ascending order using the comparison method 

specified by 

comp.

 The range begins at 



a

[

star t

] and runs for 

count

 elements. 

The array must be one-dimensional. 

public static void Sor t(Array 



k

, Array 


v

,

                                 int 



star t

, int 


count

)

Sor ts a range within a pair of one-dimensional arrays into ascending order. 



Within both arrays, the range to sor t begins at the index passed in 

star t

and runs for 



count

 elements. The 



k

 array contains the sor t keys. The 



v

 array 


contains the values linked to those keys. Thus, the two arrays contain key/

value pairs. After the sor t, both ranges are in ascending-key order.

public static void

    Sor t(TK[ ] 



k

, TK[ ] 


v

,

                       int 



star t

, int 


count

)

Sor ts a range within a pair of one-dimensional arrays into ascending order. 



Within both arrays, the range to sor t begins at the index passed in 

star t

and runs for 



count

 elements. The 



k

 array contains the sor t keys. The 



v

 array 


contains the values linked to those keys. Thus, the two arrays contain key/

value pairs. After the sor t, both ranges are in ascending-key order. 

public static void Sor t(Array 

k

, Array 


v

,

                                 int 



star t

, int 


count

,

                                 IComparer 



comp

)

Sor ts a range within a pair of one-dimensional arrays into ascending order 



using the comparison method specified by 

comp.

 Within both arrays, 

the range to sor t begins at the index passed in 

star t

 and runs for 



count

elements. The 



k

 array contains the sor t keys. The 



v

 array contains the values 

linked to those keys. Thus, the two arrays contain key/value pairs. After the 

sor t, both ranges are in ascending-key order.

public static void

    Sor t(TK[ ] 



k

, TV 


v

,

                        int 



star t

, int 


count

,

                        IComparer 



comp

)

Sor ts a range within a pair of one-dimensional arrays into ascending order 



using the comparison method specified by 

comp.

 Within both arrays, 

the range to sor t begins at the index passed in 

star t

 and runs for 



count

elements. The 



k

 array contains the sor t keys. The 



v

 array contains the values 

linked to those keys. Thus, the two arrays contain key/value pairs. After the 

sor t, both ranges are in ascending-key order. 

public static bool

     TrueForAll(T[ ] a, Predicate 



pred

)

Returns true if the predicate specified by 



pred

 is satisfied by all elements in 



a.

If one or more elements fail to satisfy 



pred,

 then false is returned.

T

ABLE


 21-12 

Methods Defi ned by 

Array

(continued)

Method


Meaning

www.freepdf-books.com




648

 

P a r t   I I :  



E x p l o r i n g   t h e   C #   L i b r a r y


Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   799   800   801   802   803   804   805   806   ...   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