int/byte/byte[]转换 c#

来源:互联网 发布:安卓一键改串号软件 编辑:程序博客网 时间:2024/04/30 04:27
        int i=5;        byte iByte = System.Convert.ToByte(i);        int oldI = System.Convert.ToInt32(iByte);        byte[] iBy = System.BitConverter.GetBytes(i);        int newI = System.BitConverter.ToInt32(iBy,0);


0 0
原创粉丝点击