View Single Post
  #6 (permalink)  
Old March 31st, 2011, 08:22 PM
mangel mangel is offline
Registered User
 
Join Date: Mar 2011
Posts: 17
Thanks: 4
Thanked 1 Time in 1 Post
Smile Book Sample Code Issue

Hi Imar,

I have your Beginning ASP .NET 4 etc book. Also thanks for taking the time to look at this issue.

You said that the code provided in the book of issue is:

Dim query As Table(Of title) = dc.titles
For Each item In query
Console.WriteLine("{0}: {1}",
item.title_id,
item.title)
Next

But in the book the verbiage between "query" and "=" is not there. I just think that is should have been.

The other part regarding Option Infer I was not aware of and thanks for the explanation. My difficulty was due to not starting the book with chapter one; I went straight to LINQ in chapter 10. I was basically interested in that before attempting to read a book devoted to it. However, your explanation was short and sweet and could have been provided at the beginning of the LINQ section in the book. Because Option Infer was added specifically due to LINQ, it probably should have been reviewed at the beginning of the LINQ section or at least the reader should be asked to return to chapter 1 page 18 and review the compile options.

I don't know but when you write a book for WROX, do you consider the possibility that the reader may skip ahead?

I went straight from VS2005 to VS2010, so I had never tried LINQ until now.

So perhaps I was too harsh. Perhaps I should have read the first chapter first.

Thanks,

Mangel

Last edited by mangel; March 31st, 2011 at 08:26 PM..