Home

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]);

Comments

Sign In or Register to comment.