C#通过foreach语句遍历arraylist源码演示
如下的代码是关于C#通过foreach语句遍历arraylist演示的代码。
using System;using System.Collections;namespace Client.Chapter_4___Program_Control{ public class ForEaches { static void Main(string[] args) { ArrayList a = new ArrayList(10); foreach (int x in a) { Console.WriteLine(x); } } }}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。