copy array

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

Hi,
I have an array in a class
When I make a copy of that class and copy the array from one class to the
other the two arrays point to the same object:
arr=arr => same object
arr(0)=arr(0) ==> different objects
How do I copy an array without copying all the arrayelements one by one?
Thanks
Frank
 
Hi Frank,

You like this solution:

Array.Copy(arrSource, arrDest, arrSource.Length)

Good luck! Ken.
 
Thats fine for a String type.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 
Back
Top