List of List wont accept List

List<List<float>> StockValue; // I specify the LIST

 var c = new List<float>(); /// I create a new List

 StockValue.Add(c); /// Doesnt work

Using these three things doesnt perform expected adding of list to the list of list.

At some point i was master of adding lists to lists but some annoying stuff has changed and now using the above method will simply not work.

You didn’t initialize the first list

List<List<float>> StockValue = new List<List<float>>();
2 Likes

OH YES I REMEMBER NOW thank you so much