日期:2014-05-18 浏览次数:21400 次
public void AsyncRefreshLogisticsCompany(int shopId) { IsBusy = true; ThreadPool.QueueUserWorkItem(RefreshLogisticsCompany,new object[]{shopId}); } /// <summary> /// 获取物流公司 /// </summary> /// <param name="state"></param> private void RefreshLogisticsCompany(object state) { var result = new SunyuResult(); try { [color=#FF0000] var shopId = Convert.ToInt32(state);----------在这里抛出的异常[/color] var shop = ShopDB.GetShopById(shopId); 时间 2012/8/21 10:09:31 捕获异常 System.InvalidCastException: 无法将类型为“System.Object[]”的对象强制转换为类型“System.IConvertible”。 在 System.Convert.ToInt32(Object value)