Is yield return
a shortcut for implementing IEnumerable
and IEnumerator
?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Yes. See the following for a starter
http://msdn.microsoft.com/en-us/library/dscyy5s0.aspx
Yes, it is.
You can find out a lot more about it in chapter 6 of my book, C# in Depth. Fortunately chapter 6 is available for free from Manning's web site.
I also have two other articles on the book's web site.
Feedback welcome.
To add to the link-fest, Raymond Chen did a nice little series on C# iterators a few months ago: