I can't understand why the value of my list changes when I recalculated the variable used to input the value in the list.
Look's an example.
List<double[]> myList = new List<double[]>();
double[] a = new double[3];
a[0] = 1;
a[1] = 2;
a[2] = 3;
myList.Add(a); // Ok List[1] = 1 2 3
a[0] = 4; // List[1] = 4 2 3
a[1] = 5; // List[1] = 4 5 3
a[2] = 6; // List[1] = 4 5 6
myList.Add(a); // List[1] = 4 5 6 and List[2] = 4 5 6
Can someone help me?