永发信息网

怎么解决索引超出范围。必须为非负值并小于集合大小。参数名: index

答案:2  悬赏:60  手机版
解决时间 2021-02-09 13:17
System.ArgumentOutOfRangeException: 索引超出范围。必须为非负值并小于集合大小。
参数名: index
在 System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
在 System.ThrowHelper.ThrowArgumentOutOfRangeException()
在 System.Collections.Generic.List`1.get_Item(Int32 index)
在 Realmforge.Util.Random.NextItem[T](IList`1 list)
在 Realmforge.Dungeons.DunGui.PreGameGui.NewTip()
在 Realmforge.Dungeons.DunGui.PreGameGui..ctor()
在 Realmforge.Dungeons.DunGui.GuiFactory.CreateGui(String guiType)
在 Realmforge.Dungeons.Modes.PreGame.Enter()
在 Realmforge.MogreUtil.Application.ModeProxy.SetMode(Type modeType)
在 Realmforge.MogreUtil.Application.ModeProxy.SetMode[T]()
在 Realmforge.Dungeons.DunGui.MainMenuGui.OnNewCampaign()
在 Realmforge.Dungeons.DunGui.Utils.ControlUtils.<>c__DisplayClass1.b__0(Object sender, MouseEventArgs e)
在 Miyagi.Controls.BaseControl.OnMouseClick(MouseButton mb)
在 Miyagi.Core.InputManager.InjectClick(BaseControl topControl, MouseButton mb)
在 Miyagi.Core.InputManager.InjectMouseReleased(MouseButton mb)
在 Realmforge.Dungeons.Modes.DungeonsModeProxy.MouseUp(MouseEventArgs e)
在 Realmforge.MogreUtil.Application.MainApplication`3.MouseUp(Object sender, MouseEventArgs e)
在 System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
在 System.Windows.Forms.Form.WndProc(Message& m)
在 Realmforge.MogreUtil.Application.MainForm.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
最佳答案
你加到100分就有人答你!
全部回答
数组的下标 e.item.itemindex 出错. 1检查你的语句是否写在 datalist1 dataitembound 的事件里 2可以在此语句之前写:int i = e.item.itemindex; 看看i的数值是否正确.
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
未成年急缺钱,上班族,又不能贷款也没信用卡
帮忙起个好名字 女孩 农历1993年10月27日(阳
中国石油水龙井加气站地址在哪,我要去那里办
为矫正对象提供的基本生存条件主要有(  )
上发勐我想知道这个在什么地方
五年级3弟子规节选清李毓秀古诗朗读
中国石化中国石化股份有限公司云南石油分公司
癌症晚期死前征兆
围咀头地址在什么地方,想过去办事
今晚四肖有?
平顶山叶县2路公交车最早几点
结节究竟是什么
广源超市鹏飞商店(鹏飞农家店)在什么地方啊,
广州哪有维修U盘的地方?地址和电话什么?谢谢
中国石化中国石化股份有限公司云南石油分公司
推荐资讯
我的惠普HP Deskjet 3938打印机,在win7上不
牛奶酸度低于12度的原因有哪些?
新兴家电在什么地方啊,我要过去处理事情
求大神解答,怎么利用坐标算出角度。
农村自建房24墙不加构造柱,只做圈梁可以吗,
中国邮政储蓄银行(永新镇支行)(一零一省道)地
百事快递(燕郊经济技术开发区燕郊经济开发区
有哪位明星是4月13日出生的?如题 谢谢了
嘉鱼湖畔商务宾馆地址有知道的么?有点事想过
EX文件隐藏完了怎么办?
西方领导体制发展经历了那几个阶段?
鲁迅怎样看中国人
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?