BitConverter.GetBytes (UInt32) returns 32-bit unsigned integer value as an array of bytes.
Imports System
Imports Microsoft.VisualBasic
Module GetBytesUInt32Demo
Sub GetBytesUInt32( argument As UInt32 )
Dim byteArray As Byte( ) = BitConverter.GetBytes( argument )
Console.WriteLine( BitConverter.ToString( byteArray ) )
End Sub
Sub Main( )
GetBytesUInt32( Convert.ToUInt32( 15 ) )
End Sub
End Module