In C#, why can’t an anonymous method contain a yield statement?
Eric Lippert recently wrote a series of blog posts about why yield is not allowed in some cases. Part 1 Part 2 Part 3 Part 4 Part 5 Part 6 EDIT2: Part 7 (this one was posted later and specifically addresses this question) You will probably find the answer there… EDIT1: this is explained in … Read more