4 个解决方案
#1
使用BitConverter.GetBytes这个方法
#2
uint => byte[]:
byte[] bUint = BitConverter.GetBytes( yourUint );
byte[] => uint:
uint nvalue = BitConverter.ToUInt32( yourBytes, 0 );
byte[] bUint = BitConverter.GetBytes( yourUint );
byte[] => uint:
uint nvalue = BitConverter.ToUInt32( yourBytes, 0 );
#3
愚翁老大正解
#4
就说应该很简单,谢谢了
#1
使用BitConverter.GetBytes这个方法
#2
uint => byte[]:
byte[] bUint = BitConverter.GetBytes( yourUint );
byte[] => uint:
uint nvalue = BitConverter.ToUInt32( yourBytes, 0 );
byte[] bUint = BitConverter.GetBytes( yourUint );
byte[] => uint:
uint nvalue = BitConverter.ToUInt32( yourBytes, 0 );
#3
愚翁老大正解
#4
就说应该很简单,谢谢了