Welcome to MSDN Blogs Sign in | Join | Help

July 2008 - Posts

A closer look at yield – part 2

In part 1 , we took a quick tour of the yield keyword. In this post we’re going to have a look at the code that the compiler generates for us when we use yield. We’ll return to the first example from last time and insert a Console.WriteLine before the
Posted by stuartle | 1 Comments
Filed under:

Using let in LINQ to Objects – Part 3

This is a follow-up to my two previous posts on the let keyword Using let in LINQ to Objects Using let in LINQ to Objects – Part 2 The real reason for this post is to link to a great post that K.Scott Allen has just published : Optimizing LINQ Queries
Posted by stuartle | 0 Comments
Filed under: ,

A closer look at yield

The yield keyword in C# is pretty powerful and expressive, but it doesn’t seem to be very widely known about. In this post we’ll take a quick look at what yield does and then I’ll post a follow-up that looks at what the compiler generates for you. Let’s
Posted by stuartle | 3 Comments
Filed under:
 
Page view tracker