Do you think you've discovered an error in this book?
Please check the list of errata below to see if we've already addressed the error. If not,
please submit the error via our
Errata Form.
We will attempt to verify your error; if you're right, we will post a correction below.

Chapter

Page

Details

Date

Print Run

42 on Website PDF

Code Error in Exercise Answers.pdf on websitePage 42 of the 578472_Exercise Answers.pdf (available for download on the website)

Code ReplacementThe content for this title has been posted and may be accessed via:
http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764578472,descCd-download_code.html

04/06/2006

xxxviii

Typo in Text2nd paragraph in Errata section: "link to each's book's errata" should read "link to each book's errata"

5/28/09

3

2

Error in Exercise AnswerIn Exercise 4, the solution reads:
"The * and / operators have the highest precedence here, followed by +, <<, and
finally +=. The precedence in the exercise can be illustrated using parentheses as follows:
resultVar += (((var1 * var2) + var3) << (var4 / var5));"

Should read:
"The *, % and / operators have the highest precedence here, followed by + and +=. The precedence in the exercise can be illustrated using parentheses as follows:
resultVar += ((var1 * var2) + ((var3 % var4) / var5));"

03/31/2006

20

Error in Command PromptOn page 20, it indicates to run from the command prompt type reads:

However, since a directory was created when
we set the settings back to default and kept the checkbox
selected for creating a directory for the solution the text should read:

C:\BegVCSharp\ConsoleApplication1\ConsoleApplication1\bin\Debug
to be in the correct directory as the executable.

11/03/06

31

Typo in TextFirst paragraph on the page:

tweak the settings to sort your personal style

Should be

tweak the settings to suit your personal style

6/9/09

44

Error in Text/CodeOn page 44 it is stated that the conditional operator is a logical one, in that it returns a Boolean value.

This is wrong. It returns the value of the second or third operand.

Example: (a>b)?5:9 doesn’t return a Boolean value.

05/04/2006

66

Error in Text/CodeOn page 66 is stated that the unary suffix increment en decrement (i++ and i--) operators have lowest precedence. The language specification states that the unary suffix operator is placed in the Primary category, thus takes highest precedence.

Example: statement a=b++; would be equivalent to the syntactically wrong statement (a=b)++; if the suffix operator had lowest precedence.

should read: "Calling ShowDouble() with myNumber.....". Camel Casing was used instead of Pascal Casing

11/03/06

149

Error in TextReference to Chapter 12 should be Chapter 13.

07/31/2007

188

Typo in Diagramin UML diagram:
StaticPorperty

should read:
StaticProperty

11/06/07

190

Error in TextIn the second to last paragraph it reads:

"Alternatively, you an instantiate the object as part of the using statement:"

This sentence should read:

"Alternatively, you can instantiate the object as part of the using statement:"

07/30/2007

215

Error in Text/CodeOn page 215 is stated: “If you use a nondefault constructor of a class, then the default behavior is to use a constructor on the base class that matches the signature of this constructor”. An example of this statement is given on page 215 and 216.

The language specification states:
If an instance constructor has no constructor initializer, a constructor initializer of the form base() is implicitly provided. [Note: Thus, an instance constructor declaration of the form C(…) {…} is exactly equivalent to C(…): base() {…} end note]

Thus, the default base class constructor is always implicitly provided if no constructor initializer is given.

05/04/2006

262

Error in ScreenshotScreenshot on page 262 - the entry for Ace should have a Value entry of 1, making the definition of the Rank enumeration as follows:

With this definition (which is as the code is in the downloadable version)
the code on 265 is as it should be. The advantage of doing things this was
round is spelled out in the note under Figure 10-12.

3/9/06

289

Error in Code if (min < 2)
{
min = 2;
}
min = minimum;
max = maximum;

Should be:

min = minimum;
max = maximum;
if (min < 2)
{
min = 2;
}

07/31/2007

13

364

Error in TextChapter 13, Page 364, second line in the second paragraph:

Errors in Code/TextThe section that refers to defining a new class called "RegistrationInformation" reads "3. Implement the struct RegistrationInformation in the file RegistrationInformation.cs as shown:"

The first line of the code reads:
public struct RegistrationInformation.

The first line should read:
public class RegistrationInformation

AND

In Step 3 under "try it out" the text should read:
"Implement the class RegistrationInformation in the file RegistrationInformation.cs as shown:"

05/11/2006

626

Error in Codecode reads:
if (Request.UserAgent.Contains("MSIE")

should read:
if (Request.UserAgent.Contains("MSIE"))

Note: closing bracket is missing

12/13/06

690

Error in Textparagraph after point 7 reads:Selecting the button Synchronise selected files that shows errors in both directions.

should read:
Selecting the button Synchronise selected files that shows arrows in both directions