简体   繁体   中英

How do I include this byte in my byte array?

I'm on Windows 10. I am using Visual Studio 2019. Language C#

I am trying to include this byte into my byte array, but it just gives me an error.

Please help.

byte[] mybyte = new byte[] { 74, 68, 69, 73, 69, 73, 5F, 73, 65, 63, 72, 65, 74, 61, 73, 64, 06, 00, 00, 00 };

The one I am trying to include is 5F , but it gives me an error when I try to include it.

Thanks for the help madreflection

The fix was to add 0x to the start of the bytes.

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