P
Pia Stevens
I have 2 arrays
string[] arr1;
string[] arr2;
Ok there are two way to copy arr1 into arr2:
With Array.Copy()
and
foreach ....
But it seems to me that there is a shorter way when I want to copy the complete array rather
then a subarray.
Could I write simply
arr2 = arr1;
or does this has some side effects ?
Pia
string[] arr1;
string[] arr2;
Ok there are two way to copy arr1 into arr2:
With Array.Copy()
and
foreach ....
But it seems to me that there is a shorter way when I want to copy the complete array rather
then a subarray.
Could I write simply
arr2 = arr1;
or does this has some side effects ?
Pia