Is there an easy way to print an array, which is potentially multi-dimensional, to the Console in VB.NET for the purpose of debugging (i.e. just checking that the contents of the array is correct).
Coming from an Objective-C background the NSLog
function prints a reasonably well formatted output, such as the following for a one-dimensional array:
myArray {
0 => "Hello"
1 => "World"
2 => "Good Day"
3 => "To You!"
}
and similar for a multi-dimensional array (the following is an example of a two-dimensional array output):
myTwoDArray {
0 => {
0 => "Element"
1 => "Zero"
}
1 => {
0 => "Element"
1 => "One"
}
2 => {
0 => "Element"
1 => "Two"
}
3 => {
0 => "Element"
1 => "Three"
}
}