R
Roberto Nicastro
Hi all,
i have this piece of code
Suppose that lstA is List of 3 Objects
List<Object> lstA = ...something;
List<Object> lstB = lstA;
....
[block A] //this is a block of code
....
Inside block A i remove one item from lstA, so lstA become a List of 2
Objects. Inside block A i never touch lstB.
Why at the end of block A also lstB is with 2 elements? How is this
possible?
Thanks in advance
R
i have this piece of code
Suppose that lstA is List of 3 Objects
List<Object> lstA = ...something;
List<Object> lstB = lstA;
....
[block A] //this is a block of code
....
Inside block A i remove one item from lstA, so lstA become a List of 2
Objects. Inside block A i never touch lstB.
Why at the end of block A also lstB is with 2 elements? How is this
possible?
Thanks in advance
R