Imports System
Imports System.Text
Public Class Program
Public Shared Sub PrintByteArray(ByVal bytes As Byte())
Dim sb = New StringBuilder("byte[] = ")
Dim b
For Each b In bytes
sb.Append(b & ", ")
Next
Console.WriteLine(sb.ToString())
End Sub
Public Shared Sub Main()
Dim bytes As Byte() = New Byte() {1, 2, 4, 16, 32, 64, 128}
PrintByteArray(bytes)
End Sub
End Class
' run:
'
' byte[] = 1, 2, 4, 16, 32, 64, 128,
'