System.InvalidCastException: 指定的转换无效。

    技术2022-05-20  61

     floor = (int)aRow["FID"].ToString();                //floor = int.Parse(aRow["FID"].ToString());//错误:指定的转换无效

                    roomNum = Convert.ToInt32(aRow["RoomId"]) - 100 * floor;                if (roomNum > 14)                    roomNum = roomNum - 2;                status = aRow["SName"].ToString().Trim();


    最新回复(0)