Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date submitted |
---|---|---|---|---|
Answers Appendix Top of page, first answer. |
http://my.safaribooksonline.com/9780596155018/chapter_4_operators |
Shannon Barta | Mar 13, 2009 | |
Page ch 19 Chapter 19 Code does not work |
The FileCopier code presented as the basis for Chapter 19, does not work. I am running Windows 7. When displaying the treeview's they only show the first few folders on the hard drive. When I could not make this software work myself, I downloaded the source code from your site and ran it directly, unmodified. Your source failed as well. According to MSDN, treeview should work under all windows platforms, so I have to assume there is something wrong with the author's code. |
Anonymous | Jan 31, 2010 | |
17.3 Lambda Expressions |
17.3 Lambda Expressions: |
Anonymous | Feb 16, 2010 | |
Printed | Page 40 In "The Macro Explorer Window" paragraph |
"The Macro Explorer is the one of the main tools" should be "The Macro Explorer is one of the main tools" |
Stephen Korow | May 21, 2009 |
Printed | Page 47 sample code |
On page 47 is listed the following sample code: |
Anonymous | Feb 13, 2009 |
Printed | Page 52 3rd code example on page |
Code example for the Console.WriteLine method makes it appear as though you can enter the quoted string on more than one line, but this will not compile - you will get a 'newline in constant' error message due to a newline character (an actual one, not an escaped character) in the string. The text does not explain that the string is split to fit on the printed page, but must all be entered on one line in the editor. |
Tim Jones | Aug 11, 2009 |
Printed | Page 57 code snippet before last paragraph |
int myDouble = 4.7; |
Stephen Korow | May 21, 2009 |
Printed | Page 57 code example at the bottom of the page |
shouldn't myDouble be of type "Double" instead of type "int". Otherwise, there is no need for the explicit cast. Also, you'll get an error because you are trying to assign the value "4.7" to an int variable. |
Stephen Korow | Nov 20, 2009 |
Printed | Page 57 C# code at the bottom of the page |
The code is demonstrating converting a double to an integer. Therefore, the first line of code "int myDouble = 4.7;" should be "double myDouble = 4.7;". |
Stephen Korow | Jan 21, 2010 |
Printed | Page 58 first paragraph |
The last sentence of the first paragraph on page 58 states that the reader is almost guaranteed to lose value sooner or later. While I agree with the sentiment, I believe you meant to say that that "you are almost guaranteed to lose a value sooner or later" or possibly "lose precision in a value sooner or later". |
Stephen Korow | Nov 20, 2009 |
Printed | Page 58 first paragraph |
The last sentence of the first paragraph is missing an "a". It should read "guaranteed to lose a value". |
Stephen Korow | Jan 21, 2010 |
Printed | Page 77 First example |
book r = true; |
Lucas Jarmin | May 10, 2009 |
Printed | Page 77 code example after first paragraph |
The third boolean variable is declared with a "book" type. The correct declaraion is: |
Bruce Ring | Jun 30, 2010 |
Printed | Page 84 Exercise 4-4 |
This is picky, but units of area and units of volume are not comparable, therefore it doesn't quite make sense to say which result is greater. What high school did the author attend? |
Tim Jones | Aug 11, 2009 |
103 code example after 3rd paragraph |
Console.WriteLine("Enter your input string.") statement needs to end with a semicolon. |
Tim Jones | Aug 12, 2009 | |
Printed | Page 181 2nd Paragraph of Setting a Breakpoint section |
The sentence reads: |
Phillip McCollum | Dec 16, 2009 |
Printed | Page 213 middle of page |
The middle of the page contains this code example: |
Bruce Ring | Jul 05, 2010 |
Printed | Page 226 third code example |
You intend to derive MyOtherClass from MyClass. The code example has this reversed. |
Eric Bank | Mar 22, 2009 |
Printed | Page 230 In "Overriding Virtual Methods" |
In the first code example in "Overriding Virtual Methods," the name of the method is erroneously changed from DrawControl to DrawWindow. |
Lucas Jarmin | Jun 18, 2009 |
Printed | Page 231 2nd paragraph |
This is very minor, but I thought it may be helpful to the author. |
Anonymous | Apr 21, 2010 |
Printed | Page 231 4th paragraph |
On the for loop explanation i<3 is used instead of ControlArray.Length. |
Stefanos Vyzikidis | Nov 16, 2010 |
Printed | Page 233 Throughout page |
Don't you think you should have made explicit the fact that if you polymorphically call a method that uses new instead of override, that the base class version of the method executes? |
Anonymous | Mar 22, 2009 |
Printed | Page 235 first paragraph |
The keywords abstract and public should be interchanged in position. |
Paul Lin | Oct 30, 2009 |
Printed | Page 249 Second Paragraph |
I dont know that it is proper to say this is a mistake or not, but when compiling the code Example 12-2 and 12-3 I noticed 2 warnings as shown below (note I am using VS 2008): |
Anonymous | Apr 22, 2010 |
Printed | Page 254 Paragraph starting with "To implement the conversion operator, ..." |
The last sentence of the paragraph reads: |
Anonymous | Mar 23, 2009 |
Printed | Page 294 Last paragraph before Example 14-1. |
I believe what is printed as "...that contains a simple array (myStrings)..." should read "...that contains a simple array (strings)..." if it is to match the code in Example 14-1. |
Eric Larson | May 17, 2012 |
Printed | Page 311-313 Code Example 14-5 |
While reading the Code Example 14-5 and retyping it I found the "public bool Equals(Employee other)" method confusing. There is no reason for it to be there. Also, lines 20 and 21 are commented out, and they call a method that does not exist. While the example obviously runs fine since it is commented out, it serves no real purpose, it is just confusing. |
Anonymous | Apr 26, 2010 |
Printed | Page 313 Code Example lines 9 & 18 |
In lines 9 & 18 of the code example there are very minor space typos. (just for consistency) |
Anonymous | Apr 26, 2010 |
Printed | Page 330 Exercise 14-1 |
The wording states "Create an abstract Animal class that has private members weight and name..." If you do exactly as the text states, you cannot access the variables from the derived classes you are then asked to create. The wording should be changed to "protected members..." or not qualify "members" at all. |
Josh R. | Feb 04, 2011 |
Printed | Page 338 Example 15-3, lines 21 & 27 |
Line 21 reads: |
Anonymous | Jun 24, 2010 |
Printed | Page 339 3rd paragraph |
Exemple 15.3 the book says: |
Anonymous | May 26, 2014 |
Printed | Page 342 End of page below "Here's the output:" |
At the end of page 342 below where it says "Here's the output:" |
Anonymous | Apr 27, 2010 |
Printed | Page 399 last snippet of code |
in the last snippet of code "timeInfoEventArgs" is in Bold. This didn't change from the previous code. The modified code, and the code that is referred to in the test is "delgate". That is what should be bolded. |
Stephen Korow | Jan 21, 2010 |
Printed | Page 400 C# code in the middle of the page |
"theClock.OnSecondChange" should be "theClock.SecondChange". |
Stephen Korow | Jan 21, 2010 |
Printed | Page 400 Code example in the middle of the page |
"theClock.OnSecondChange" should be "theClock.SecondChanged". |
Anonymous | Apr 28, 2010 |
Printed | Page 400 No Paramater Lamabada example at end of page |
At the end of the page, very last line the lambada example has a typo: |
Anonymous | Apr 28, 2010 |
Printed | Page 401 4 lines down from the top of the page. |
On the fourth line down from the top on page 401, the example shows: |
Anonymous | Apr 28, 2010 |
Printed | Page 426 First code example after the heading "Implementing the Copy button event" |
In the first code example after the heading "Implementing the Copy button event" it says to input the following code: |
Anonymous | Apr 29, 2010 |
Page 432 The whole source code |
The code explained in that chapter is a whole mess, and worst, the so-called File-Copier just doesn't work. |
Anonymous | Jun 07, 2014 | |
Printed | Page 442 First paragraph, first sentence |
The first sentence on page 442 says: |
Anonymous | Apr 29, 2010 |
Printed | Page 466 Example 19-7 source code |
the names space is "PhotoCatalog". It should be the same as the namespace for the project. |
Stephen Korow | Jan 21, 2010 |
Printed | Page 472 White House Presidents Image URL in code example |
The URLs for the images have been changed and are different from both the book version and the downloadable example. Pay attention to the spelling of the URLs for images to the 8th, the 15th and the 19th presidents. |
He Wang | Jul 15, 2009 |
Printed | Page 488 Example 20-1 |
Building the proposed example i get |
Vyzikidis Stefanos | Dec 01, 2010 |
Printed | Page 567 1st paragraph or the Example 10-4 code |
Exercise 10-4 asks for a method to initialize the chessboard array and a method to test whether a square is black or white. The sample solution ignores the word "method". The initialization and testing code are just part of the Run() method. Either the question or the sample code is wrong. |
Anonymous | Jul 01, 2009 |
Printed | Page 601 top |
Exercise 14-3 is about Stacks & Queues. Shouldn't the solution involve Pop & Dequeue? The solution in the book just iterates through the stack & queue with a foreach loop and ToString(essentially). I did this instead: |
Anonymous | Aug 02, 2009 |
Printed | Page 621 Solution to Question 17-9 |
In the solution to question 17-9 it appears that instead of showing how you create delegated methods anonymously, it explains what an anonymous method is. Unless I misunderstand the question, an explanation and an example would seem like what the other actually intended. Or, either the question or answer is wrong (rather they do not match). It seems it should show something like this: |
Anonymous | Apr 28, 2010 |