Microsoft LINQ Books

Programming Microsoft LINQ & Introducing Microsoft LINQ
Welcome to Microsoft LINQ Books Sign in | Join | Help

small bug on Page 80

  •  08-18-2007, 8.56

    small bug on Page 80

    First of all, I really like the book, I am (slowy) working my way through the bok, and I really enjoy the fact that you show both the IEnumerable<T> extension methods signatures, together with the query syntax. Too many books just focus on the query syntax in my opinion. 

    in Listing 4-10, the type of the result is "IEnumerable<Order> orders", which is not correct, since we are performing a "select new {..}", which creates an anonymous type. So, you should probably use "var order" as the type of the result.

     Bennie Haelen (http://footheory.com/blogs/bennie/default.aspx)

     

    Filed under:
View Complete Thread
Powered by Community Server (Personal Edition), by Telligent Systems