Is yield return
实施的捷径IEnumerable
and IEnumerator
?
是的。
您可以在我的书《C# in Depth》的第 6 章中找到更多相关信息。幸好第六章是免费提供 http://www.manning-source.com/books/skeet/Chapter6sample.pdf from 曼宁的网站 http://manning.com/skeet/.
我也有两个other http://csharpindepth.com/Articles/Chapter6/IteratorBlockImplementation.aspx articles http://csharpindepth.com/Articles/Chapter11/StreamingAndIterators.aspx在这本书的网站上。
欢迎反馈。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)