2015年11月17日

C#中yield return用法分析

摘要: 说明:yield关键字用于遍历循环中,yield return用于返回IEnumerable,yield break用于终止循环遍历。以下对比了使用yield return与不使用yield return的情况,直接上代码:using System;using System.Collections.... 阅读全文

posted @ 2015-11-17 10:01 JMcc 阅读(9754) 评论(1) 推荐(0)

导航