我有一个数组列表
private ArrayList rps = new ArrayList();现在,下面的代码在2005年运行良好,但在visual studio 2008中不起作用。
int min = Convert.ToInt32(rps.Item(0));
int max = Convert.ToInt32(rps.Item(rps.Count - 1));错误: System.Collections.ArrayList不包含“Item”的定义,也无法找到接受“System.Collections.ArrayList”类型的第一个参数的扩展方法'Item‘(您是缺少一个使用指令还是程序集引用?)
https://stackoverflow.com/questions/11639061
复制相似问题