I have a list m. I want to insert an element to the end of this List. Please tell me how I can do this.
public List<double> m = new List<double>();
m[0].Add(1);
m[1].Add(2);
m[2].Add(3);
I want the following output if I add element 7 to the end:
1 2 3 7
m.Add(7);will add it to the end of the list.What you are doing is trying to call the method Add on a double