摘要: 最近在做项目中看到IEnumerable和IEnumberator,原来做MVC接触过,只知道是一个Collection要支持foreach方式的遍历,必须实现IEnumerable接口(亦即,必须以某种方式返回IEnumerator object)。这次就这个问题好好总结下,方便以后查找。 在网上查了一些资料,自己总结下。 public interface IEnumerable{ // 摘要: // 返回一个循环访问集合的枚举数。 // // 返回结果: // 一个可用于循环访问集合的 System.Co... 阅读全文
posted @ 2014-03-26 16:27 太皇天 阅读(244) 评论(0) 推荐(0)