能否生成一个list<string>的一维数组,如果可以,形式是怎样的,谢谢。 rt 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 LIST<string>本身就可以看做一维数组 ArrayList al=new ArrayList();for(int i=0;i<100;i++){ al.add(i.tostring());}for(int j=0;j<al.count();j++){ Console.writeln(al[j].tostring());} string[] List<string> list = new List<string>(); System.Collections.Generic.List<String> a = new System.Collections.Generic.List<String>(); for (int i = 0; i < 20; i++) { a.Add(i.ToString()); } for (int j = 0; j < a.Count; j++) { Response.Write(j.ToString() + "<br>"); } 我是想说:有没有list<string>[]aa这种形式? 当然没了,这本身就能实现动态数组的功能.List<string> aa=new List<string>();aa.Add("dd");aa.Add("dd");.. 建模时如何处理模型之间的多层嵌套? oracle中如何获取15分钟内的数据 比较图片,找到与原图片中的不同。 请问如何重写form的dispose方法?总是提示已定义。 如何让winform控件不随系统主题变化外观 怎么使用“对象测试工作台”,我创建实例后,在里面什么也没有呢? 求生存帮助 关于DataGrid绑定DataTable显示表头的问题,不知怎么解决,希望高手帮忙,谢谢!!!! C#的webform模式跟用asp.net有虾米区别? 怎样保存不同窗体的数据 为什么最小化后程序占的内存数明显减少? 大家一块来研究一下UDP打洞。。。。。
{
al.add(i.tostring());
}
for(int j=0;j<al.count();j++)
{
Console.writeln(al[j].tostring());
}
for (int i = 0; i < 20; i++)
{
a.Add(i.ToString());
}
for (int j = 0; j < a.Count; j++)
{
Response.Write(j.ToString() + "<br>");
}
aa.Add("dd");
aa.Add("dd");
..