一聚教程网:一个值得你收藏的教程网站

热门教程

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)转换

 

热门栏目