简体   繁体   中英

Add to byte array in VB.net

How to write this code in VB.NET??

byte[] bArr = new byte[2] { 0x1B, 0x68 };

I tried all I know and search around, but couldn't find right answer

Dim bArr As Byte() = New Byte(1) {&H1B, &H68}

您以后可以使用http://converter.telerik.com/

dotnetfiddle.net是一个很好的资源,用于在 C# 和 VB.Net 之间测试和转换代码

Dim bArr As Byte() = New Byte(1) {27, 104}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM