C# in Depth

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

Extra comma in listing

Chapter 8: Cutting fluff with a smart compiler: P222, listing 8.3

Created: 10/11/2013
Last updated: 11/8/2013
Severity: Typo

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" }
}