Wiley.com
Print this page Share

Professional C# 2005 with .NET 3.0

ISBN: 978-0-470-12472-7
Paperback
1800 pages
June 2007
Professional C# 2005 with .NET 3.0 (0470124725) cover image
This title is out-of-print and not currently available for purchase from this site.

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.

ChapterPageDetailsDatePrint Run
xliii Typo in Code
Mid-page, in code example:
Systm.Collections;

Should be:
System.Collections;
10/29/07
XLIV Error in Code
In the first code segment on this page, the word "partial" is omitted between "public" and "class". From my experiments with the compiler, you cannot attach a partial class definition (as in the second block of code) unless all the definitions include the word "partial".
11/21/2007
41 Error in Text
in the integer types table:

longt

should be:

long
07/19/2007
44 Error in Text
Decimal Type table is listed as both Decimal Type and Boolean Type.

Table should appear as:

Name bool
CTS Type System.Boolean
Values true or false

A new version of page 44 showing the correct table is available in the Downloads section.
07/19/2007
52 Error in Code
for (int i = 0; i < 100; i+1)
{
Console.WriteLine(i);
}

Should be:

for (int i = 0; i < 100; i = i+1)
{
Console.WriteLine(i);
}
07/25/07
63 Error in Text
rogram

should be:

program
10/02/2007
77 Error in Code
public int subscriberId;

should be:

public int _subscriberId;
01/28/2008
99 Error in Code
public Car ( ... ) : this(Model,4)

should be :

public Car ( ... ) : this(description,4)
08/20/2007
132 Error in Code
if ((result == Withdraw(amount))

should be:
if ((result = Withdraw(amount)))
10/11/07
137 Error in Text
"Declaring this 2-dimensional array with C# is done by putting a semicolon inside the brackets."

should be:
"Declaring this 2-dimensional array with C# is done by putting a comma inside the brackets."
11/06/07
138 Error in Text
mid-page:

"By using two semicolons inside the brackets, you can declare a 3-dimensional array:"

should be:
"By using two commas inside the brackets, you can declare a 3-dimensional array:"
11/06/07
149 Error in Code
Enumerator enumerator = new Enumerator();

should be:

Enumerator enumerator = new Enumerator(0);
02/06/2008
151 Error in Example
for (int i = 3; i >= 0; i-)

Should be:
for (int i = 3; i >= 0; i--)
11/06/07
198 Error in Text
The first text block after the code snippet currently reads:
?you would get a compilation error if you tried to initialize the variable firstStringMethod with any method that did not take any parameters and return a string.

Should read:
?you would get a compilation error if you tried to initialize the variable firstStringMethod with any method that did not take zero parameters and return a string.
08/15/2012
217 Addition to Text
Add the variable busEntity referencing a new object of type BusEntity to the class Form1:
private BusEntity busEntity = new BusEntity();
02/06/2008
218 Error in Code
The word "brackets" needs to be removed from code.
08/30/2007
8 231 Error in Figure 8-2
In Figure 8-2 the last box:

StringBuilder.AppendFormat("0",D)

Should be

StringBuilder.AppendFormat("{0}",1)
02/18/09
260 Error in Code
public delegate TSummary Action(TInput t, TSummary s);

public static TSummary AccumulateG(IEnumerable coll,
Action action)
{
TSummary sum = default(TSummary);

foreach (TInput input in coll)
{
sum = action(input, sum);
}
return sum;
}

In the code above:
TOutput

should be:
TSummary
11/05/07
266 To Clarify GetNullableType()
GetNullableType() was just meant to be a placeholder.
You can implement it this way:

int? GetNullableType()
{
return null;
}

OR this way:

int? GetNullableType()
{
return 4;
}

OR add any implementation.
11/13/07
275 Typo in Code
racers.Add(Mario);

Should be

racers.Add(mario);
02/17/09
311 Error in Text
The first three lines currently read:
The next line of code both declares a Customer object reference and instantiates a Customer object. In this instance, space on the stack for the otherCustomer2 reference is allocated and space for the mrJones object is allocated in a single line of code:
Customer otherCustomer2 = new EnhancedCustomer();

Should read:
The next line of code both declares a Customer object reference and instantiates a Customer object. In this instance, space on the stack for the otherCustomer2 reference is allocated at the same time as the space on the heap for the otherCustomer2 object:
Customer otherCustomer2 = new EnhancedCustomer();
08/15/2012
492 Error in Text
After you build the assembly, the reference can be seen...

Should be:
After you've used a type from the C++ assembly and built the assembly, the reference can be seen...
09/20/07
781 Error in Code
Currently:
string query = "Really delete the file\n" + filePath + y?";

Should be:
string query = "Really delete the file\n" + filePath";
08/15/2012
805 Error in Code
In the code block (button1_Click):

File.ReadAll(textBox1.Text);

Should be

File.ReadAllText(textBox1.Text);
02/18/09
805 Error in Text
using the File.ReadAll method

Should be

using the File.ReadAllText method



And



The ReadAll method opens

Should be

The ReadAllText method opens



And



The return value of the ReadAll method is

Should be

The return value of the ReadAllText method is



And



The File.ReadAll signature

Should be

The File.ReadAllText signature



And



File.ReadAll(FilePath)

Should be

File.ReadAllText(FilePath)
02/18/09
806 Error in Text
The ReadAll method shown earlier

Should be

The ReadAllText method shown earlier
02/18/09
Back to Top