BitConverter.GetBytes returns the specified Unicode character value as an array of bytes.
Imports System
Imports Microsoft.VisualBasic
Module GetBytesCharDemo
Sub GetBytesChar( argument As Char )
Dim byteArray As Byte( ) = BitConverter.GetBytes( argument )
Console.WriteLine(BitConverter.ToString( byteArray ) )
End Sub
Sub Main( )
GetBytesChar( " "c )
End Sub
End Module