(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 1: The changing face of C# development

P22/23, listing 1.21: Incorrect formatting

The formatting in listing 1.21 is fine until the last line of page 22 - but that closing brace should be outdented, and then on page 23 the productCheckButton.Enabled = true; line should be indented.

The code will already execute perfectly happily - it's just not pleasant to look at.

P23, section 1.6: Incorrect listing reference

Directly after listing 1.21, I state that "The full method is a little longer than the one shown in listing 1.22," where of course I meant listing 1.21 instead - listing 1.22 doesn't exist.