摘要: yield是C#为了简化遍历操作实现的语法糖,我们知道如果要要某个类型支持遍历就必须要实现系统接口IEnumerable,这个接口后续实现比较繁琐要写一大堆代码才能支持真正的遍历功能。 using static System.Console; using System.Collections.Gen 阅读全文
posted @ 2020-03-20 16:27 LBO.net 阅读(180) 评论(0) 推荐(0) 编辑
//返回顶部