c# 16进制byte转成int
1 byte[] Ratedata=new byte[4];
2 Ratedata=System.BitConverter.GetBytes(FreResultTBoxValue);
上面这个 FreResultTBoxValue 变量是int,系统中自带int转BYTE的函数(^-^)
1 byte[] Ratedata=new byte[4];
2 Ratedata=System.BitConverter.GetBytes(FreResultTBoxValue);
上面这个 FreResultTBoxValue 变量是int,系统中自带int转BYTE的函数(^-^)