摘要:
实现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... 阅读全文