BitConverter.GetBytes returns the specified Boolean value as an array of bytes. : BitConverter « Development « VB.Net
- VB.Net
- Development
- BitConverter
BitConverter.GetBytes returns the specified Boolean value as an array of bytes.
Imports System
Imports Microsoft.VisualBasic
Module GetBytesBoolDemo
Sub GetBytesBool( argument As Boolean )
Dim byteArray As Byte( ) = BitConverter.GetBytes( argument )
Console.WriteLine( BitConverter.ToString( byteArray ) )
End Sub
Sub Main( )
GetBytesBool( True )
End Sub
End Module
Related examples in the same category