摘要:
转自:http://www.cnblogs.com/jackhuclan/archive/2008/01/10/1033042.html代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--classProgram{staticvoidMain(stri... 阅读全文
摘要:
阅读全文
摘要:
实现IEnumerable接口的类,可以支持foreach循环遍历对象的集合元素IEnumerable:IEnumerator GetEnumerator()返回可循环访问集合的枚举数。IEnumerator:object Current获取集合中的当前元素。bool MoveNext()将枚举数推进到集合的下一个元素。如果枚举数成功地推进到下一个元素,则为 true;如果枚举数越过集合的结尾,则... 阅读全文