Re: arraylist copy
- From: "Joseph MCAD" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 9 Apr 2005 10:14:39 -0700
April 9, 2005
Thanks for everybody's replies!
Joseph MCAD
"Cor Ligthert" <notmyfirstname@xxxxxxxxx> wrote in message
news:ucqaDTNPFHA.3076@xxxxxxxxxxxxxxxxxxxxxxx
>
> "Joseph
>> Thanks! Then what is the difference between CopyTo and Clone? MSDN
>> mentioned that clone creates a shallow copy and copyto creates a deep
>> copy? Thanks again!
>>
>
> A clone makes a copy of the arraylist. While an array is a reference type,
> are only the references copied. Any change in a shadow will affect on the
> other one as well. Except when it is by instance the removing or adding of
> a reference (row), than they grew apart.
>
> A copyto makes a copy of the values in a one dimensional array. Where when
> it are objects it is in fact again a shadow of course.
>
> A deep copy makes new copy of all the values and creates a new arraylist
> arround those. For that I have never seen a method in Net. You have to do
> it yourself. (In my opinion can that be complicated when it is by instance
> a jagged array).
>
> I hope this gives some idea's
>
> Cor
>
.
- References:
- arraylist copy
- From: Sam
- Re: arraylist copy
- From: Joseph MCAD
- Re: arraylist copy
- From: Herfried K. Wagner [MVP]
- Re: arraylist copy
- From: Joseph MCAD
- Re: arraylist copy
- From: Cor Ligthert
- arraylist copy
- Prev by Date: Re: Access vs SQL
- Next by Date: loading activeX control in runtime
- Previous by thread: Re: arraylist copy
- Next by thread: Re: arraylist copy
- Index(es):
Relevant Pages
|