C# in Depth

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

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

Errata for Chapter 1: The changing face of C# development

P12, Listing 1.11: Lack of space between type and variable name

Listing 1.11 contains this line of code:

List<Product>matches = products.FindAll(test);

There should be a space between the type name and the variable name:

List<Product> matches = products.FindAll(test);

P6, listing 1.2: Italic type name and spacing

The GetSampleProducts declaration in listing 1.2 has the return type in italics instead of in bold, and it has an extra space after it:

public static List<Product>  GetSampleProducts()

It should actually be in bold, with just one space:

public static List<Product> GetSampleProducts()