Home
Options

Can't get dump to work at all

Just testing LINQPAD in a Visual Studio 2017 C# program. This simple code:


String[] s = new String() { "aaaa", "bbbb", "cccc" };
s.Dump();



Only returns:

System.String[]

I have to be doing something wrong, but what?




Comments

  • Options
    Are you doing this in LINQPad or Visual Studio? Also, your code is incorrect and will not compile. You need square brackets in the array constructor:
    String[] s = new String[] { "aaaa", "bbbb", "cccc" };
    s.Dump();
Sign In or Register to comment.