Can you write a convenient line of code that prints the contents of an array?
I will use this in the Immediate Window of Visual Studio 2008, so really it has to work in that window. I may have left out some requirements, but that's pretty much what I'm trying to do.
myArray.ToList().ForEach(Console.WriteLine);
Honestly though, I don't think that'll work in the immediate window. It is a nice trick to print it all in one line, but I think for the immediate window, all you need is this:
? myArray
I use:
BitConverter.ToString(bytes); //output: 4A-0B-11-13 etc.
Poor BitConverter, always forgotten.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With