Mega Code Archive

 
Categories / VB.Net / Development
 

BitConverter GetBytes (Int64) returns the specified 64-bit signed integer value as an array of bytes

Imports System Imports Microsoft.VisualBasic Module GetBytesInt64Demo     Sub GetBytesInt64( argument As Long )         Dim byteArray As Byte( ) = BitConverter.GetBytes( argument )         Console.WriteLine(BitConverter.ToString( byteArray ) )     End Sub      Sub Main( )         GetBytesInt64( &HFFFFFF )     End Sub  End Module