上一页 1 ··· 3 4 5 6 7
摘要: C#中关键字 yield 的使用 1.背景知识点 (1)IEnumerable 接口 IEnumerable ,用于对外公开一个枚举器。 //公开枚举器,该枚举器支持对非泛型集合进行简单迭代。 public interface IEnumerable { //获取枚举器 IEnumerator Ge 阅读全文
posted @ 2014-11-05 16:05 误会馋 阅读(459) 评论(0) 推荐(1)
上一页 1 ··· 3 4 5 6 7