diff --git a/Errata.md b/Errata.md index 41476e8a..1d17a962 100644 --- a/Errata.md +++ b/Errata.md @@ -29,4 +29,5 @@ Zhou Jing & Benjamin Michaelis | 18 | 918 | Change "For example, in LISTING 18.2 Zhou Jing | 19 | 946 | Change "The worker thread writes plus signs to the console, while the main thread writes hyphens." to "The worker thread writes hyphens to the console, while the main thread writes plus signs." Zhou Jing | 19 | 964 | Change "3:0052:Unhandled exception handler starting." to "Event handler starting" Zhou Jing | 21 | 1022 | Change "3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912" to "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679" in output 21.1 -Zhou Jing | 20 | 1018 | Change paragraph beginning with "The need to support TAP from the UI is one of the key scenarios that led to TAP’s creation." to "Supporting TAP from the UI is a fundamental scenario that led to the development of TAP. Another common scenario occurs on the server side when a client’s request involves retrieving a large dataset from a database. Given that database queries can be time-consuming, it’s crucial to hangle them efficiently. Instead of creating new threads or using threads from the limited thread pool, it’s advisable to utilize asynchronous programming patterns. These patterns avoid blocking threads while waiting for the database response, especially since the actual query operations are executed on a separate machine (the database server). This approach ensures that server resources are used optimally, allowing threads to manage other tasks rather than being idle during I/O operations." \ No newline at end of file +Zhou Jing | 20 | 1018 | Change paragraph beginning with "The need to support TAP from the UI is one of the key scenarios that led to TAP’s creation." to "Supporting TAP from the UI is a fundamental scenario that led to the development of TAP. Another common scenario occurs on the server side when a client’s request involves retrieving a large dataset from a database. Given that database queries can be time-consuming, it’s crucial to hangle them efficiently. Instead of creating new threads or using threads from the limited thread pool, it’s advisable to utilize asynchronous programming patterns. These patterns avoid blocking threads while waiting for the database response, especially since the actual query operations are executed on a separate machine (the database server). This approach ensures that server resources are used optimally, allowing threads to manage other tasks rather than being idle during I/O operations." +Zhou Jing | 18 | 926-927 | Change 'LastName' references to be 'FirstName' in paragraphs \ No newline at end of file diff --git a/src/Chapter18/Listing18.30.RuntimeBindingToXMLElementsWithoutDynamic.cs b/src/Chapter18/Listing18.30.RuntimeBindingToXMLElementsWithoutDynamic.cs index b5f54511..b9343b9a 100644 --- a/src/Chapter18/Listing18.30.RuntimeBindingToXMLElementsWithoutDynamic.cs +++ b/src/Chapter18/Listing18.30.RuntimeBindingToXMLElementsWithoutDynamic.cs @@ -15,8 +15,9 @@ public static void Main() Montoya "); - Console.WriteLine($"{ person.Descendants("FirstName").First().Value }" + - $"{ person.Descendants("LastName").First().Value }"); + Console.WriteLine( + $"{person.Descendants("FirstName").First().Value}" + + $"{person.Descendants("LastName").First().Value}"); //... #endregion INCLUDE } diff --git a/src/Chapter18/Listing18.31.RuntimeBindingToXMLWithDynamics.cs b/src/Chapter18/Listing18.31.RuntimeBindingToXMLWithDynamics.cs index 8feda5ce..70f7e336 100644 --- a/src/Chapter18/Listing18.31.RuntimeBindingToXMLWithDynamics.cs +++ b/src/Chapter18/Listing18.31.RuntimeBindingToXMLWithDynamics.cs @@ -8,12 +8,12 @@ public static void Main() #region INCLUDE dynamic person = DynamicXml.Parse( @" - Inigo - Montoya - "); + Inigo + Montoya + "); Console.WriteLine( - $"{ person.FirstName } { person.LastName }"); + $"{person.FirstName} {person.LastName}"); //... #endregion INCLUDE }