C# in Depth

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

IShape, not Shape

Chapter 3: Parameterized typing with generics: P94, section 3.5.1

Created: 2/17/2011
Last updated: 2/17/2011
Severity: Typo

In section 3.5.1, page 94, just above the bulleted list, it states:

We can't convert from an IEnumerable<Circle> to an IEnumerable<Shape>.

However, there's no such type as Shape in our situation - we have an interface instead. So the sentence should actually say:

We can't convert from an IEnumerable<Circle> to an IEnumerable<IShape>.