最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
when casting from a number,the value must be a number less than infinity
时间:2022-06-25 06:03:43 编辑:袖梨 来源:一聚教程网
when casting from a number,the value must be a number less than infinity
解决办法:用Convert.ToInt32代替int
eg:
this.SALEID = (int)value => this.SALEID = Convert.ToInt32(value);
原因:object不能用(int)转换