【发布时间】:2019-04-16 22:21:58
【问题描述】:
当我调用List<T>.Add(T) 时,它会抛出这个异常:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.Generic.List`1.Add(T item)
at ConsoleApp5.Program.AddToList(Int32 seed)
我还看到Enumerable.Any 针对同一个列表抛出了这个异常。
【问题讨论】:
-
@Jonathan Allen 可以看到代码吗?