Re: arraylist copy
- From: J L <john@xxxxxxxxxxxxx>
- Date: Sat, 09 Apr 2005 07:51:08 -0700
Thanks Cor, that does help.
John
On Sat, 9 Apr 2005 09:21:15 +0200, "Cor Ligthert"
<notmyfirstname@xxxxxxxxx> wrote:
>
>"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: How can I let the internet explorer start to navigate in the same windwo?
- Next by Date: Re: Access vs SQL
- Previous by thread: Re: arraylist copy
- Next by thread: Re: arraylist copy
- Index(es):
Relevant Pages
|