Wiley.com
Print this page Share

Professional C# 4.0 and .NET 4

ISBN: 978-0-470-50225-9
Paperback
1536 pages
March 2010
Professional C# 4.0 and .NET 4 (0470502258) 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
Part IV Part IV Error in Text
Part IV: Data should read:

Here, you look at accessing data using ADO.NET and learn about the ADO.NET Entity Framework and WCF Data Services. This part also extensively covers support in .NET for XML, using LINQ to query XML data sources, and the .NET features of SQL Server 2008.
2/19/10
Part V Part V Error in Text
Part V should read:

This section starts by showing you how to build applications based upon the Windows Presentation Foundation and Silverlight, and covers writing components that will run on web sites, serving up web pages. It continues with coverage on building classic Windows applications, which are called Windows Forms in .NET. Windows Forms are the thick-client version of applications, and using .NET to build these types of applications is a quick and easy way of accomplishing this task. Finally, it includes coverage of the tremendous number of features that ASP.NET, building web sites with dynamic data, and building web applications using ASP.NET MVC.
2/19/10
LIV Error in Text
Introduction, 3rd paragraph of text and 3rd block of code:

Currently reads: isTrailUser:
Should read: isTrialuser:
02/27/2012
16 Error in Text
The complete tip about WinCV should be removed: WinCV, a Windows-based utility, can be used to browse?
?covered by the .NET 3.5 base classes?

Should be:
?covered by the .NET 4.0 base classes?
10/05/2010
2 61 Error in Text
public int subscriberId;

should be:
private int subscriberId;


public int _subscriberId;

should be:
private int _subscriberId;
4/1/10
63 Error in Text
const implements preserve to

appears in two lines on this page and should be only in one
5/3/10
67 Error in Code
In the 'properties' sub-section of the 'function members' part , it reads:

...so you don't have use method names.....

should read ... so you don't have [to] use method names...
06/15/2010
68 Error in Text
// Instantiate at MathTest object

Should be:

// Instantiate a MathTest object
5/3/10
73 Error in Code
Code is
get 
{
return Name;
}

Should be
get 
{
return name;
}
05/09/2011
74 Error in Text
public string Age { get; set; }

should be:
public int Age { get; set; }

and

public string Age { get; }

should be:
public int Age { get; }

and

public string Age { get; private set; }

should be:
public int Age { get; private set; }
5/3/10
85 Error in Code
Under the ToString() Method:

Reads: string str = i.ToString(); // returns "-50"
Should read: string str = i.ToString(); // returns "50"
02/17/2012
99 Error in Text
In the Visibility Modifiers table, the "Applies To" column is incorrect:

internal—Any member of a type, also any nested type
private—Any types or members

Should be:

internal—Any types or members
private—Any member of a type, also any nested type
5/4/10
5 111 Error in Text
The AddLast method should be:
public LinkedListNode AddLast(object node)
{
var newNode = new LinkedListNode(node);
if (First == null)
{
First = newNode;
Last = First;
}
else
{
LinkedListNode previous = Last;
Last.Next = newNode;
Last = newNode;
Last.Prev = previous;
}
return newNode;
}
4/1/10
111 Error in Text
The “<” symbol before “public” should be removed
5/3/10
5 112 Error in Text
The AddLast method should be changed:

public LinkedListNode AddLast(T node)
{
var newNode = new LinkedListNode(node);
if (First == null)
{
First = newNode;
Last = First;
}
else
{
LinkedListNode previous = Last;
Last.Next = newNode;
Last = newNode;
Last.Prev = previous;
}
return newNode;
}
4/1/10
116 Error in Text
The “<” symbol before “static” should be removed
5/3/10
117 Error in Text
In the first line of code on the page:

IEnumerable<out T>

Should be

IEnumerable<T>
3/30/10
130 Error in Text
The first occurrence of

int[] myArray = new int[] { 4, 7, 11, 2 };

should be:

int[] myArray = new int[4] { 4, 7, 11, 2 };

It’s OK in the second occurrence.
5/3/10
132 Error in Text
<nt[,] twodim = new int[3, 3];

Should be:

int[,] twodim = new int[3, 3];
5/3/10
139 Error in Text
"Array covariance has an issue that can only resolved with ..."

Should be:

"Array covariance has an issue that can only be resolved with ..."
5/3/10
186 Error in Text
Brackets should be replaced by parentheses:

"In any code, supplying the name of a delegate instance, followed by brackets containing any parameters, ..."

Should be:

"In any code, supplying the name of a delegate instance, followed by parentheses containing any parameters, ..."

"In fact, supplying brackets to the delegate instances ..."

Should be:

"In fact, supplying parentheses to the delegate instances ..."
5/3/10
191 Error in Code
Page 191:
if (sortArray[i] < sortArray[i + 1]))

should be:
if (softArray[i] > sortArray[i + 1])
06/16/2010
198 Error in Text
Console.WriteLine(anonDel(“Start of a string”));

Should be:

Console.WriteLine(lambda(“Start of a string”));
5/3/10
193 Error in Code
BubbleSorter.Sort( ... )should read BubbleSorter.Sort( ... )
05/25/2010
201 Error in Code
Currently states:

public event EventHandler<CarInfoEventArgs> NewCarInfo
{
add {newCarInfo += value;}
remove {newCarInfo = value;}
}
Should be:

public event EventHandler<CarInfoEventArgs> NewCarInfo
{
add {newCarInfo += value;}
remove {newCarInfo -= value;}
12/15/2011
202 Error in Code
The 2nd code snippet, EventsSample/Program.cs currently reads:

dealer.NewCarInfo = michael.NewCarIsHere;

should be:
dealer.NewCarInfo - = michael.NewCarIsHere;
05/19/2010
500 Error in Text
Under the code sample it reads:
When you run the application, you can see that 50 worker threads are possible with the current settings.

Should read:
When you run the application, you can see that 1023 worker threads are possible with the current settings.
03/28/2012
25 Text Correction
Currently:
?Next, you declare a class MyFirstClass.
Should be:
Next, you declare a class MyFirstCSharpClass.
04/02/15
Back to Top