Example of the BitConverter.ToString( Byte( ) ) method. : BitConverter « Development « VB.Net Tutorial






Imports System
Imports Microsoft.VisualBasic

Module BytesToStringDemo
    Sub Main( )
        Dim arrayOne as Byte( ) = {0,1,2,4,8,16,32,64,128,255 }
        Console.WriteLine( BitConverter.ToString( arrayOne ) )

    End Sub 
End Module








7.35.BitConverter
7.35.1.Convert Byte arrays to String objects with the ToString method.
7.35.2.Example of the BitConverter.ToString( Byte( ) ) method.
7.35.3.Example of the BitConverter.GetBytes( UInt32 ) method.