LINQPad strange bug
The following code causes an Object reference not set to an instance of an object in LINQPad, but works in VS 2017:
var anObjectList = new List { "name", new[,] { { 1 } } };
Console.Write("Length ");
Console.WriteLine(anObjectList.Count());
Console.WriteLine(anObjectList[1]);
var anObjectList = new List { "name", new[,] { { 1 } } };
Console.Write("Length ");
Console.WriteLine(anObjectList.Count());
Console.WriteLine(anObjectList[1]);
Comments
var anObjectList = new[] { o, o1 }.ToList();
var anObjectList = new List<object> { "name", new[,] { { 1 } } };
Sorry - never mind!