Learning C#

Errata for Learning C#

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update



Version Location Description Submitted By Date Submitted Date Corrected
Printed
Page 48
Figure 6-1

The figure is incorrect. After Statement3 comes Method2(), and when Method2() returns, the program should go to Statement 4 and then 5, then ends. (Arrow from Method2() should point to Statement 4 on the Main section, not End Program)

Anonymous   
Printed
Page 61
code

String myChoice = "NewLeft"; should be: string myChoice = "NewLeft";

Anonymous   
Printed
Page 67
1st code example, "Example 6-14. Using break to exit a for loop (continued)"

if (counter == 5) Console.WriteLine("Breaking out of the loop"); break; } NOW READS: if (counter == 5) { Console.WriteLine("Breaking out of the loop"); break; } Page 79. Example 7-4, the last three lines: After prefix: 11, 11 After postfix: 12, 11 NOW READS: Output: After prefix: 11, 11 After postfix: 12, 11

Anonymous    Dec 01, 2004
Printed
Page 98
3rd paragraph

The Time class of Example 8-3 does not define a constructor. As noted earlier, if your do not declare a ... NOW READS: The Time class of Example 8-2 does not define a constructor. As noted earlier, if your do not declare a ... Page 98 IN PRINT: Last sentence "Example 8-4 declares a constructor for the Time class that accepts a single argument, an object of type DateTime. DateTime is a type provided by the .NET Framework Class Library." NOW READS: "Example 8-4 declares a constructor for the Time class that accepts six arguments, one each for the year, month, date, hour, minute and second for the new Time object you are creating."

Anonymous    Dec 01, 2004
Printed
Page 153
Example 8-3

theSecond )= Second; should be theSecond = Second in the GetTime method

Anonymous   
Printed
Page 154
IN PRINT: Example 11-5, fifth line from the top

"int anotherIntegerVaraible = (int) myObjectVariable;" NOW READS: "int anotherIntegerVariable = (int) myObjectVariable;"

Anonymous    Dec 01, 2004
Printed
Page 272
16th line

string s10 = s3.Insert(101, "excellent "); NOW READS: string s10 = s3.Insert(s3.IndexOf("Training"), "excellent ");

Anonymous    Dec 01, 2004
Printed
Page 277
In Example 17-7

string s1 = "One,Two,Three Liberty Associates, Inc. "; NOW READS: string s1 = "One,Two,Three Liberty Associates, Inc.";

Anonymous    Dec 01, 2004
Printed
Page 300
Example 18-7

The custom catch "MyCustomException" should come before the catch "System.DivideByZeroException" because it's more derived.

Anonymous   
Printed
Page 413
second paragraph

...(typically with updated data) The user's experience... should be: ...(typically with updated data). The user's experience...

Anonymous