Subject: Errata - Chapter 9, Page 337, C#
Posted By: RobC Post Date: 8/28/2006 11:21:59 PM
First, the header near the top of the page should probably be "Static Methods and Properties," not "Shared Methods and Properties."

Next, this sentence:
quote:
The introduction of the Shared keyword means that a class is no longer required,

...should be:
quote:
The introduction of the static keyword means that a class is no longer required,

And the last code block:
Utils.Log("An exception occurred");

...should be:
Tools.Log("An exception occurred");
Reply By: DaveSussman Reply Date: 8/30/2006 3:09:49 AM
You are correct on all counts. The shared/static thing was, from looking at my chapter, something that got backed out and I'm not sure why.

Reply By: RobC Reply Date: 8/30/2006 8:17:36 AM
Hi Dave,

I see you are the author of chapter 9. I don't mean to pick on you; the errors in chapter 9 are, I think, representative of the problems found throughout the book. There was a Try It Out in chapter 7 with a Details View control that I simply couldn't get to work -- I went through it a couple of times, and every time I got a runtime error when I tried to update the record.

The point I was trying to make was: I think it would be good if someone at Wrox went through the book to make sure the examples are correct. For example, on page 634 the solution for exercise C in Chapter 9 (NOT A > 0 OR A < 5) reads:
quote:
True for integers 5 and below. Integers 6 and above will evaluate to False.

5 < 5 == True...?

Go to topic 49062

Return to index page 189
Return to index page 188
Return to index page 187
Return to index page 186
Return to index page 185
Return to index page 184
Return to index page 183
Return to index page 182
Return to index page 181
Return to index page 180