Mega Code Archive

 
Categories / VB.Net Tutorial / Data Type
 

Convert the part of a Byte array to a String with the ToString method

' Example of some BitConverter.ToString( ) method overloads. Imports System Imports Microsoft.VisualBasic Module BytesToStringDemo     Sub Main( )         Dim arrayOne as Byte( ) = { _               0,   0,   0,   0, 128,  63,   0,   0, 112,  65, _               0, 255, 127,  71,   0,   0, 128,  59,   0,   0, _               0,   0,   0, 192, 255,   0,   0, 128, 255,   0, _               0, 128, 127 }         Console.WriteLine(BitConverter.ToString( arrayOne))     End Sub  End Module