摘要: 原文:http://blog.sojingle.net/programming/csharp/csharp-collections-dictionaries-using-foreach对于.net Framework中内置的几种集合类,foreach是一种很方便的遍历方式:非泛型&弱类型的Collections(ArrayList,Queue,Stack):使用object:ArrayList al = new ArrayList();al.Add("hello");al.Add(1);foreach(object obj in al){ Console.Write 阅读全文
posted @ 2012-08-07 11:24 $walker 阅读(1288) 评论(0) 推荐(0)