From d333fa33f5c0d0a8862c2a996c036581512f1395 Mon Sep 17 00:00:00 2001 From: Mark J Price Date: Tue, 11 Apr 2023 08:45:03 +0100 Subject: [PATCH] Add item for page 378 --- docs/errata/README.md | 2 +- docs/errata/improvements.md | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/errata/README.md b/docs/errata/README.md index 52ca50a..62c931f 100644 --- a/docs/errata/README.md +++ b/docs/errata/README.md @@ -4,7 +4,7 @@ If you find any mistakes in the seventh edition, *C# 11 and .NET 7 - Modern Cros [**Errata** (40 items)](errata.md): Typos, tool user interface changes, or mistakes in code that would cause a compilation error that prevents a successful build. -[**Improvements** (28 items)](improvements.md): Changes to text or code that would improve the content. These are optional. +[**Improvements** (29 items)](improvements.md): Changes to text or code that would improve the content. These are optional. [**Common Errors** (3 items)](common-errors.md): These are some of the most common errors that a reader might encounter when trying to get code in book tasks to work, or when trying to write your own code. diff --git a/docs/errata/improvements.md b/docs/errata/improvements.md index 0d64fd6..e661f54 100644 --- a/docs/errata/improvements.md +++ b/docs/errata/improvements.md @@ -1,4 +1,4 @@ -**Improvements** (28 items) +**Improvements** (29 items) 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. @@ -19,6 +19,7 @@ If you have suggestions for improvements, then please [raise an issue in this re - [Page 339 - Viewing source links with Visual Studio 2022](#page-339---viewing-source-links-with-visual-studio-2022) - [Page 343 - Packaging a library for NuGet](#page-343---packaging-a-library-for-nuget) - [Page 351 - Using non-.NET Standard libraries](#page-351---using-non-net-standard-libraries) +- [Page 378 - Dictionaries](#page-378---dictionaries) - [Page 444 - Connecting to a database](#page-444---connecting-to-a-database) - [Page 453 - Scaffolding models using an existing database](#page-453---scaffolding-models-using-an-existing-database) - [Page 512 - Group-joining sequences](#page-512---group-joining-sequences) @@ -376,6 +377,12 @@ for (int i = 0; i < matrix.Axes[1].Points.Length; i++) } ``` +# Page 378 - Dictionaries + +In the next edition, I will add a note at the bottom of this section to set an expectation that readers will come across dictionaries again later in the book in more practical ways. + +> Note: In Chapter 11, LINQ, you will learn how to create dictionaries and lookups from existing data sources like tables in a database using LINQ methods like `ToDictionary` and `ToLookup`. This is a much more common use than manually adding items to a dictionary as shown in this section. + # Page 444 - Connecting to a database I wrote, "To connect to a SQLite database, we just need to know the database filename, set using the parameter `Filename`."