byte数组
byte[] aa = new byte[] { 0xF8, 0x66, 0x55, 0x44 };
1.转换成8位有符号整数
sbyte sb = (sbyte)aa[0];
2.转换成16位有符号整数
Int16 int16 = BitConverter.ToInt16(aa, 0);
3.转换成32位有符号整数
Int32 int32 = BitConverter.ToInt32(aa, 0);
byte数组
byte[] aa = new byte[] { 0xF8, 0x66, 0x55, 0x44 };
1.转换成8位有符号整数
sbyte sb = (sbyte)aa[0];
2.转换成16位有符号整数
Int16 int16 = BitConverter.ToInt16(aa, 0);
3.转换成32位有符号整数
Int32 int32 = BitConverter.ToInt32(aa, 0);