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" };

Only returns:


I have to be doing something wrong, but what?


  • 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" };
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!