Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update Errata and fix word overflow in listings #775

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading