ArrayList 中数组取出一维数组,菜鸟问题,大家帮忙!!! ArrayList temp = new ArrayList();int[] Iary = new int[6];在temp中保存了多个Iary数组,怎样从temp中取出Iary的一个数组进行操作? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 int[] arr = temp[0] as int[]; System.Collections.IEnumerator myEnumerator = temp.GetEnumerator();while ( myEnumerator.MoveNext() ) int [] CurIntArray = (int [])myEnumerator.Current; ArrayList temp = new ArrayList();int[] Iary = new int[6];temp.Add(Iary);...取出:int[] arr = temp[0] as int[];... ArrayList temp = new ArrayList();int[] Iary1 = new int[6];int[] Iary2 = new int[6];int[] Iary3 = new int[6];temp.Add(Iary1);temp.Add(Iary2);temp.Add(Iary3);int[] getIary = (int[])temp[0]; 唉 方法讓你們說完了.不過更喜歡 veryhappy(wx.net) ( ) System.Collections.IEnumerator myEnumerator = temp.GetEnumerator();while ( myEnumerator.MoveNext() ) int [] CurIntArray = (int [])myEnumerator.Current;完全利用.NET的IEnumerator 特性. 同意System.Collections.IEnumerator myEnumerator = temp.GetEnumerator();while ( myEnumerator.MoveNext() ) int [] CurIntArray = (int [])myEnumerator.Current; 一般都用int[] getIary = (int[])temp[0]; 求人解答!! 要是使用多个DropDownList作为筛选~~该怎么办~~ 一个关于异步HttpListener的问题 C# 弹出修改字体属性的窗口 .net下的C#中的winform编程时,用户控件的属性问题(困扰几个月的问题,一直没有得到答案,难道是BUG) C# 如何在速度上优化 自定义控件比较多 radiobutton 奇怪问题 终止线程? .NET 2005中如何控制播放声音的大小 如何弥补DataView的局限性 如何像gmailfs一样显示成为系统文件夹 用XmlTextReader读取包含正则表达示的XML文件时出错!
while ( myEnumerator.MoveNext() )
int [] CurIntArray = (int [])myEnumerator.Current;
int[] Iary = new int[6];
temp.Add(Iary);
...取出:
int[] arr = temp[0] as int[];
...
int[] Iary1 = new int[6];
int[] Iary2 = new int[6];
int[] Iary3 = new int[6];temp.Add(Iary1);
temp.Add(Iary2);
temp.Add(Iary3);int[] getIary = (int[])temp[0];
不過更喜歡
veryhappy(wx.net) ( )
System.Collections.IEnumerator myEnumerator = temp.GetEnumerator();
while ( myEnumerator.MoveNext() )
int [] CurIntArray = (int [])myEnumerator.Current;
完全利用.NET的IEnumerator 特性.
System.Collections.IEnumerator myEnumerator = temp.GetEnumerator();
while ( myEnumerator.MoveNext() )
int [] CurIntArray = (int [])myEnumerator.Current;