C#中Toint没有任何重载采用参数是什么意思

[复制链接]
查看11 | 回复3 | 2013-5-24 15:54:02 | 显示全部楼层 |阅读模式
BitConverter.ToInt32(inbuffer,0)Int32 i = BitConverter.ToInt32(inbuffer,0);缺少了参数,后面加个起始位置...
回复

使用道具 举报

千问 | 2013-5-24 15:54:02 | 显示全部楼层
public static int ToInt32(byte[] value, int startIndex);如上,这个方法要有两个参数,一个参数的方法没有...
回复

使用道具 举报

千问 | 2013-5-24 15:54:02 | 显示全部楼层
BitConverter.ToInt32(byte[] value,int startIndex)你这里只给定了要变成int的byte数组,还需要告诉程序从第几位开始转换。比如: Int32 i = BitConverter.ToInt32(inbuffer,0);...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行