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

  • 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.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!