C# 0 The Complete Reference



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

a

, T 


v

,

                                         int 



star t

)

Returns the index of the first element within the one-dimensional array 



a

 that 


has the value specified by 

v.

 The search begins at 



a

[

star t

]. Returns –1 if the 

value is not found. 

public static int IndexOf(Array 

a

, object 



v

,

                                   int 



star t

, int 


count

)

Returns the index of the first element within the one-dimensional array 



a

 that 


has the value specified by 

v.

 The search begins at 



a

[

star t

] and runs for 

count

elements. Returns –1 if the value is not found within the specified range. (If 

the array has a lower bound other than 0, then the failure value is the lower 

bound –1.)

public static int IndexOf(T[ ] 

a

, T 


v

,

                                         int 



star t

, int 


count

)

Returns the index of the first element within the one-dimensional array 



a

 that 


has the value specified by 

v.

 The search begins at 



a

[

star t

] and runs for 

count

elements. Returns –1 if the value is not found within the specified range. 

public void Initialize( )

Initializes each element in the invoking array by calling the element’s default 

constructor. This method can be used only on arrays of value types that have 

constructors.

public static int LastIndexOf(Array 

a

, object 



v

)

Returns the index of the last element within the one-dimensional array 



a

 that 


has the value specified by 

v.

 Returns –1 if the value is not found. (If the array 

has a lower bound other than 0, then the failure value is the lower bound –1.)

public static int LastIndexOf(T[ ] 



a

, T 


v

)

Returns the index of the last element within the one-dimensional array 



a

 that 


has the value specified by 

v.

 Returns –1 if the value is not found. 

public static int LastIndexOf(Array 

a

, object 



v

,

                                         int 



star t

)

Returns the index of the last element within a range of the one-dimensional 



array 

a

 that has the value specified by 



v.

 The search proceeds in reverse 

order, beginning at 

a

[

star t

] and stopping at 

a

[0]. Returns –1 if the value is 

not found. (If the array has a lower bound other than 0, then the failure value 

is the lower bound –1.)

T

ABLE


 21-12 

Methods Defi ned by 

Array

(continued)

Method


Meaning

www.freepdf-books.com




646

 

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

public static int LastIndexOf(T[ ] 




Download 4,07 Mb.

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