//input “0166”
//output “0A”
//流程
int input = int.Parse(“0166”);
//Int 到 Byte数组
byte[] b_temp= System.BitConverter.GetBytes(input ).Reverse().ToArray();
string output = “”;
foreach (byte b in b_temp)
temp += b.ToString(“X2″) + ” “;
//实际输出00 00 00 0A
//input “0166”
//output “0A”
//流程
int input = int.Parse(“0166”);
//Int 到 Byte数组
byte[] b_temp= System.BitConverter.GetBytes(input ).Reverse().ToArray();
string output = “”;
foreach (byte b in b_temp)
temp += b.ToString(“X2″) + ” “;
//实际输出00 00 00 0A