Hello all. I have the code in c#
List lst = new List() { 1, 2, 3, 4, 5, 6 };
List
- > l1 = new List
- >();
l1.Add(lst);
result in l1: 1 2 3 4 5 6
lst[1] = 10;
result in l1: 1 10 3 4 5 6
i want when change value of lst example. lst[1] = 10, elements of l1 do not change.
example when change value lst[1] = 10, result in l1: 1 2 3 4 5 6
How do it??? Thanks all!

ketan borsdiyaRank #2,258 · 624 reputationPosted Aug 22, 2016, 8:54 PM EDT
> l1 = new List
>();
Tapan PatelRank #614 · 3.9K reputationPosted Aug 22, 2016, 11:34 AM EDT