转自:http://blog.163.com/wangzhenguo2005@126/blog/static/37140526201001123032480/
int s = 100;
//Int 到 Byte数组
byte[] shi = System.BitConverter.GetBytes(s);
//Byte数组到Int
int sh = System.BitConverter.ToInt32(shi,0);
转自:http://blog.163.com/wangzhenguo2005@126/blog/static/37140526201001123032480/
//Int 到 Byte数组
byte[] shi = System.BitConverter.GetBytes(s);
//Byte数组到Int
int sh = System.BitConverter.ToInt32(shi,0);