c#中怎样用arrylist?

tiantianxiaoqiang 2010-01-29 03:44:16
private void button1_Click(object sender, EventArgs e)
{
ArrayList myarray = new ArrayList();
}
这要写,报错,提示找不到类型或者命名空间
...全文
384 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
JOCLI 2010-01-29
  • 打赏
  • 举报
回复
using System.Collections;
toxuecheng111 2010-01-29
  • 打赏
  • 举报
回复
下面的ArrayList的一些用法 楼主可以参考一下
http://blog.csdn.net/yc_8301/archive/2008/03/30/2230592.aspx
mengfanzongfox 2010-01-29
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 toxuecheng111 的回复:]
using System.Collections;这样就可以使用了
[/Quote]up
qlzf11140820 2010-01-29
  • 打赏
  • 举报
回复
System.Collections.ArrayList myarray = new System.Collections.ArrayList();
qqzeng-ip 2010-01-29
  • 打赏
  • 举报
回复
你输入ArrayList过程中应该是有提示的,没有提示可能你没有输入命名空间using System.Collections.Generic;加上后就没有问题了

或者一楼!
toxuecheng111 2010-01-29
  • 打赏
  • 举报
回复
using System.Collections;这样就可以使用了
zsz1001 2010-01-29
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 koukoujiayi 的回复:]
using System.Collections;
[/Quote]
引用
qlzf11140820 2010-01-29
  • 打赏
  • 举报
回复
System.Collections.ArrayList myarray = new ArrayList();
koukoujiayi 2010-01-29
  • 打赏
  • 举报
回复
using System.Collections;

111,120

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧