摘要:
实现Foreach遍历的集合类,需要实现IEnumerable接口,泛型集合则需要实现IEnumerable接口using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;namespace Foreach{ public class ListForeach :IEnumerable where T :class ,new() { private T[] array; private int in... 阅读全文
posted @ 2014-04-12 12:24
老树昏鸦
阅读(1677)
评论(1)
推荐(0)

浙公网安备 33010602011771号