C# 0 The Complete Reference


PART II C h a p t e r   2 1



Download 4,07 Mb.
Pdf ko'rish
bet798/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   794   795   796   797   798   799   800   801   ...   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    

643


public static void Clear(Array 

a

, int 


star t

,

                                 int 



count

)

Sets the specified elements of 



a

 to zero, 

null

, or 


false

, depending on whether 

the element type is a value type, a reference type, or Boolean. The elements 

to be zeroed begin at the index specified by 



star t

 and run for 



count

 elements. 

public object Clone( )

Returns a copy of the invoking array. The copy refers to the same elements 

as does the original. This is called a “shallow copy.” Thus, changes to the 

elements affect both arrays since they both use the same elements.

public static void

    ConstrainedCopy(Array 



source

, int 


srcIdx

,

                              Array 



dest

, int 


destIdx

,

                              int 



count

)

Copies



count

 elements from 



source

 (beginning at 



srcIdx

) to 


dest

 (beginning 

at

destIdx

). If both arrays are reference types, then 

ConstrainedCopy( )

makes a “shallow copy,” which means that both arrays will refer to the same 

elements. If an error occurs during the copy, 

dest

 is unchanged. 

public static TTo[ ]

    Conver tAll(TFrom[ ] 



a

,

               Conver ter 



conv

)

Conver ts 



a

 from type 

TFrom

 to 


TTo

 and returns the resulting array. The 

original array is unaffected. The conversion is per formed by the specified 

conver ter. 

public static void Copy(Array 

source

,

                                  Array 



dest

,

                                   int 



count

)

Beginning at the star t of each array, copies 



count

 elements from 



source

 to 


dest.

 When both arrays are reference types, then 

Copy( )

 makes a “shallow 

copy,” which means that both arrays will refer to the same elements. If an 

error occurs during the copy, 



dest

 is undefined.

public static void Copy(Array 

source

,

                                 Array 



dest

,

                                 long 



count

)

Beginning at the star t of each array, copies 



count

 elements from 



source

 to 


dest.

 When both arrays are reference types, then 

Copy( )

 makes a “shallow 

copy,” which means that both arrays will refer to the same elements. If an 

error occurs during the copy, 



dest

 is undefined.

public static void Copy(Array 

source

,

                                 int 



srcStar t

,

                                 Array 




Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   794   795   796   797   798   799   800   801   ...   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