C# in Depth

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

(You are currently looking at the third edition version of this page. This page is also available for the first and second editions.)

Errata for Chapter 8: Cutting fluff with a smart compiler

P212, section 8.2.1: Repeated figure

Figure 8.2 is a duplicate of figure 8.4. It should be a tooltip shown when hovering over a var for a Dictionary type (as described three paragraphs below).

P222, listing 8.3: Extra comma in listing

Listing 8.3 currently includes this:

new Person("Alice"),
{
    Age = 9,
    Home = { Town = "Twyford", Country = "UK" }
}

The comma after the constructor call needs to be removed, like this:

new Person("Alice")
{
    Age = 9,
    Home = { Town = "Twyford", Country = "UK" }
}