Topic: C# and C++

Beginning C# 6 Programming with Visual Studio 2015 (1119096685) cover image

Beginning C# 6 Programming with Visual Studio 2015

Benjamin Perkins, Jacob Vibe Hammer, Jon D. Reid
ISBN: 978-1-119-09668-9
840 pages
December 2015
Other Available Formats: E-book
If you are an instructor, you may request an evaluation copy for this title.
Paperback Version: US $50.00 Add to Cart

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
3 45 Errata in Code
In step 2, a ) is missing as the next to last character of this line of code:
   Console.WriteLine($"The sum of {firstNumber} and {secondNumber} is " +
                 $"{firstNumber + secondNumber}.";

Should be:
   Console.WriteLine($"The sum of {firstNumber} and {secondNumber} is " +
                 $"{firstNumber + secondNumber}.");
157, 160 Errata in text
Page 157:

The code in the book is missing the 'throw;' code in the 'catch' block of the 'case nested index' code.

Correction is:
There are 2 throw statements in the code which are not discussed. Please add the following note if possible.

NOTE: There are 2 throw statements in the code which are not shown in the code listing in step 2 of the Ch07Ex02 TRY IT OUT. These statements throw an exception while in the ThrowException(string exceptionType) method so that the catch block in the Main() method is activated. This better illustrates the exception filter functionality which was newly introduced with C# 6.
14 447 Errata in Text
In the 'Try It Out Handling Events: KarliCards Gui\Options.xaml' steps 6 through 9 should be removed.
Appendix A Ex 4 Errata in text
On the fourth exercise of Chapter 3, the solution for the problem states that 'the + operator takes precedence over the % operator'. This occurs on the first page of Appendix A and on page 49 of Chapter 3

% has higher precedence than +. This should be changed in Appendix A, Exercise 4.
10 223 Errata in code
public override string ToString() => "Name: " + Name + "\nVal: " + Val;
private MyClass() : this("Default Name") { }
public MyClass(string newName)
Name = newName;
intVal = 0;
private int myDoubledInt=5;
public int myDoubledIntProp => (myDoubledInt * 2);