Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
byte[] bytes = new byte[ 0xff, 0x01, 0x00, 0x5B, 0x8a, 0xae];


What I have tried:

I am trying this byte catch ByteArrayToHexString method.But i cath 0xff 0x01.
How to read all.
Posted
Updated 17-Mar-23 13:23pm
v2
Comments
Richard MacCutchan 17-Mar-23 12:45pm    
See below.

1 solution

Try this:
C#
byte[] bytes = {0xff, 0x01, 0x00, 0x5B, 0x8a, 0xae};
string foo = BitConverter.ToString(bytes);
Console.WriteLine($"foo: {foo}");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900