T
Tem
When I tried to add new items to a copied list, it affects both lists.
List<int> intList1 = new List<int>();
List<int> intList2 = new List<int>();
intList1.Add(1);
intList2 = intList1;
intList2.Add(2);
how i can simply copy the data not reference the original list. this is very
confusing. are there other data types like this? how can i tell?
Tem
List<int> intList1 = new List<int>();
List<int> intList2 = new List<int>();
intList1.Add(1);
intList2 = intList1;
intList2.Add(2);
how i can simply copy the data not reference the original list. this is very
confusing. are there other data types like this? how can i tell?
Tem