Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date submitted |
---|---|---|---|---|
Example 7-2. An appallingly inefficient piece of code Example 7-2 and text below |
Code says 'for (int i = 1; i < 100_000; ++i)' but text says 'This adds together the numbers from 1 to 100,000'. Shouldn't the code be 'i <= 100_000' to match the text? The code will only go to 99_999 |
Adam Pirani | Aug 29, 2023 | |
Chapter 17: Asynchronous Language Features Summary [end of chapter] |
'it will accept any expression on which you can invoke a GetWaiter method to obtain a suitable type'. Outside a restaurant context, GetAwaiter might be more appropriate |
Adam Pirani | Sep 06, 2023 | |
2. Basic Coding in C# Example 2-18 and the text above |
The text says "Example 2-18 exploits this to evaluate the quadratic formula (the standard way to solve quadratic equations)" and then shows "double x = (-b + Math.Sqrt(b * b - 4 * a * c)) / (2 * a);" but neglects to qualify that this is only half of the "standard" way - the standard way is: (-b then + or - then Math.Sqrt(b * b - 4 * a * c)) / (2 * a) ... there are always 2 solutions. So the current text is slightly misleading, implying the standard way gives 1 solution. |
Adam Pirani | Aug 18, 2023 | |
ePub | Page 918/1311 “The TypeInfo class also provides methods to discover related reflection objects. ” Excerpt From Programming C# 10 Ian Griffiths This material may be protected by copyright. |
“The TypeInfo class also provides methods to discover related reflection objects. (The properties in this paragraph are all defined on TypeInfo, not Type. As previously discussed, this is just an accident of when they were defined.) Most of these come in two forms: one where you want a complete list of all the items of the specified kind and one where you know the name of the thing you’re |
Anonymous | Oct 11, 2022 |