C#中的数组集合 [英] array collection in c#
本文介绍了C#中的数组集合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
1.
'System.Collections.ArrayList' does not contain a definition for 'iterator' and no extension method 'iterator' accepting a first argument of type 'System.Collections.ArrayList' could be found (are you missing a using directive or an assembly reference?)
2.
2.
'System.Collections.ArrayList' does not contain a definition for 'size' and no extension method 'size' accepting a first argument of type 'System.Collections.ArrayList' could be found (are you missing a using directive or an assembly reference?)
请帮助我它到底是什么
please help me what exactly it is
推荐答案
这意味着您需要添加对
System.Collections.ArrayList
的引用在您的类文件中.
in your class file.
检查这些链接..
http://msdn.microsoft.com/zh-CN /library/system.collections.arraylist(v=VS.90).aspx [ http://msdn.microsoft.com/zh-CN /library/system.collections.ienumerable(v=VS.90).aspx [ http://msdn.microsoft.com/en-us/library/system.collections.aspx [^ ]
check these links..
http://msdn.microsoft.com/en-us/library/system.collections.arraylist(v=VS.90).aspx[^]
http://msdn.microsoft.com/en-us/library/system.collections.ienumerable(v=VS.90).aspx[^]
http://msdn.microsoft.com/en-us/library/system.collections.aspx[^]
在C#中,
System.Collections.ArrayList 不包含迭代器"的定义.
在Java中有.
和大小相同.
请参见 system.collections.arraylist
In C#,
System.Collections.ArrayList does not contains a definition for ''iterator''.
In Java It have.
and same in case of size.
See metods and properties of system.collections.arraylist
这篇关于C#中的数组集合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文