C# in Depth

Cover of C# in Depth
Order now (3rd edition)

Missing "AllDefects" twice

Chapter 11: Query expressions and LINQ to Objects: P292

Created: 1/16/2009
Last updated: 1/16/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.