Skip to content

Commit

Permalink
Update Errata and fixes word overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminMichaelis committed Apr 4, 2024
1 parent 74bde81 commit 0b4fce5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Errata.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ Zhou Jing | 21 | 1022 | Change "3.1415926535897932384626433832795028841971693993
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 | 911 | Change CommandLineRequiredAttribute to CommandLineSwitchRequiredAttribute
Zhou Jing | 18 | 902-903 | Change CommandLineAliasAttribute to CommandLineSwitchAliasAttribute
Zhou Jing | 23 | 1105 | Change `Length = 10` in listing 23.20 to `Length = 12` to show entire output message
Zhou Jing | 23 | 1105 | Change `Length = 10` in listing 23.20 to `Length = 12` to show entire output message
Zhou Jing | 18 | 926-927 | Change 'LastName' references to be 'FirstName' in paragraphs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ public static void Main()
<LastName>Montoya</LastName>
</Person>");

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
}
Expand Down
8 changes: 4 additions & 4 deletions src/Chapter18/Listing18.31.RuntimeBindingToXMLWithDynamics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ public static void Main()
#region INCLUDE
dynamic person = DynamicXml.Parse(
@"<Person>
<FirstName>Inigo</FirstName>
<LastName>Montoya</LastName>
</Person>");
<FirstName>Inigo</FirstName>
<LastName>Montoya</LastName>
</Person>");

Console.WriteLine(
$"{ person.FirstName } { person.LastName }");
$"{person.FirstName} {person.LastName}");
//...
#endregion INCLUDE
}
Expand Down

0 comments on commit 0b4fce5

Please sign in to comment.