C# Convert Char to Byte (Hex representation)

后端 未结 5 1273
半阙折子戏
半阙折子戏 2021-02-07 00:23

This seems to be an easy problem but i can\'t figure out.

I need to convert this character < in byte(hex representation), but if i use



        
5条回答
  •  南笙
    南笙 (楼主)
    2021-02-07 01:05

    60 == 0x3C.

    You already have your correct answer but you're looking at it in the wrong way.

    0x is the hexadecimal prefix
    3C is 3 x 16 + 12

提交回复
热议问题