Missing "AllDefects" twice
Chapter 11: Query expressions and LINQ to Objects: P292
Created: 16/01/2009
Last updated: 16/01/2009
Severity: Typo
On P292, near the top, I claim that:
from defect in SampleData.AllDefects
select defect
is equivalent to
SampleData.Select (defect => defect)
The latter is incorrect - it should actually be:
SampleData.AllDefects.Select (defect => defect)
The sentence following that should read:
There's a big difference between this and the simple expression SampleData.AllDefects, however.