Is there an easy way to print an array that is potentially multidimensional to the console in VB.NET for debugging purposes (i.e. just check the contents of the array are correct).
Based on the Objective-C background, the NSLog function prints a fairly well-formatted output, for example, for a one-dimensional array:
myArray { 0 => "Hello" 1 => "World" 2 => "Good Day" 3 => "To You!" }
and similar for a multidimensional array (the following example of output of a two-dimensional array):
myTwoDArray { 0 => { 0 => "Element" 1 => "Zero" } 1 => { 0 => "Element" 1 => "One" } 2 => { 0 => "Element" 1 => "Two" } 3 => { 0 => "Element" 1 => "Three" } }
source share