Questions tagged «indexoutofrangeexception»

4
什么是IndexOutOfRangeException / ArgumentOutOfRangeException,如何解决?
我有一些代码,当它执行时,它抛出一个IndexOutOfRangeException,说: 指数数组的边界之外。 这是什么意思,我该怎么办? 根据使用的类,它也可以是 ArgumentOutOfRangeException mscorlib.dll中发生类型'System.ArgumentOutOfRangeException'的异常,但未在用户代码中处理。其他信息:索引超出范围。必须为非负数并且小于集合的大小。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.