mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-04-04 22:07:39 +00:00
Added item for page 156
This commit is contained in:
parent
c8a0f117b2
commit
10b6cbf578
2 changed files with 9 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
If you find any mistakes in the seventh edition, *C# 11 and .NET 7 - Modern Cross-Platform Development Fundamentals*, or if you have suggestions for improvements, then please [raise an issue in this repository](https://github.com/markjprice/cs11dotnet7/issues) or email me at markjprice (at) gmail.com.
|
||||
|
||||
[**Errata** (22 items)](errata.md): Typos, tool user interface changes, or mistakes in code that would cause a compilation error that prevents a successful build.
|
||||
[**Errata** (23 items)](errata.md): Typos, tool user interface changes, or mistakes in code that would cause a compilation error that prevents a successful build.
|
||||
|
||||
[**Improvements** (4 items)](improvements.md): Changes to text or code that would improve the content. These are optional.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
**Errata** (22 items)
|
||||
**Errata** (23 items)
|
||||
|
||||
If you find any mistakes, then please [raise an issue in this repository](https://github.com/markjprice/cs11dotnet7/issues) or email me at markjprice (at) gmail.com.
|
||||
|
||||
|
|
@ -12,6 +12,7 @@ If you find any mistakes, then please [raise an issue in this repository](https:
|
|||
- [Page 85 - Getting text input from the user](#page-85---getting-text-input-from-the-user)
|
||||
- [Page 86 - Getting text input from the user](#page-86---getting-text-input-from-the-user)
|
||||
- [Page 114 - Simplifying switch statements with switch expressions](#page-114---simplifying-switch-statements-with-switch-expressions)
|
||||
- [Page 156 - Calculating factorials with recursion](#page-156---calculating-factorials-with-recursion)
|
||||
- [Page 185 - Creating a class library that needs testing](#page-185---creating-a-class-library-that-needs-testing)
|
||||
- [Page 188 - Running unit tests using Visual Studio Code](#page-188---running-unit-tests-using-visual-studio-code)
|
||||
- [Page 244 - Init-only properties](#page-244---init-only-properties)
|
||||
|
|
@ -142,6 +143,12 @@ Cat fourLeggedCat when fourLeggedCat.Legs == 4
|
|||
=> $"The cat named {fourLeggedCat.Name} has four legs.",
|
||||
```
|
||||
|
||||
# Page 156 - Calculating factorials with recursion
|
||||
|
||||
> Thanks to [Ricky](https://github.com/r1c5) for raising this [issue on 29 January 2023](https://github.com/markjprice/cs11dotnet7/issues/21).
|
||||
|
||||
In Step 1, in the third bullet that explains the code, I wrote, "If the input parameter number is more than 1, which it will be in all other cases..." I should have written, "If the input parameter number is more than 0, which it will be in all other cases..."
|
||||
|
||||
# Page 185 - Creating a class library that needs testing
|
||||
|
||||
In the "If you are using Visual Studio Code" section, in Step 5, the command in the book is `dotnet new console` but it should have been `dotnet new classlib`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue