when casting from a number,the value must be a number less than infinity

作者:简简单单 2011-09-16

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

 

相关文章

精彩推荐