Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assigning an array to another array
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Assigning an array to another array
Divers
Thread ID:
00961244
Message ID:
00961244
Vues:
43
I have following:
public int [] my_array = [1,2,3,4,5}

Then in a method I have
int[] my_array2
my_aary2 = my_array

But if I amend my_array subsequently, my_array2 is also amended

Anybody know why this is happening and if there is a way around it ?

Regards,

Gerard
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform