Errata & src update for change on pg. 725
Pieter Le Roux      | 16          | 725         | in Listing 16.16 and Listing 16.17, add "!" prior to "word. Contains('*')" to match Listing 16.01
MODIFY
Errata.md
Errata.md
@@ -39,6 +39,7 @@ Pieter Le Roux | 16 | 712 | Output 16.3 is missing "when"
Pieter Le Roux | 16 | 715 | "File.GetLastWriteTime(file**Name**)"
Pieter Le Roux | 16 | 719 | Add "when" to Output 16.6 ("when*" was missing from source code)
Pieter Le Roux | 16 | 721 | Add "when" to Output 16.7 ("when*" was missing from source code)
+Pieter Le Roux | 16 | 725 | in Listing 16.16 and Listing 16.17, add "!" prior to "word. Contains('*')" to match Listing 16.01
Pieter Le Roux | 16 | 733 | Saw List[6] could throw error. Changed to "{ List[<s>6</s>^1] }
Pieter Le Roux | 18 | 776 | errorMessage listed twice in listing 18.3
Pieter Le Roux | 18 | 807 | "let's reexamine Listing <s>18.28</s>18.27. Notice the call to retrieve the "FirstName" element:"

MODIFY
src/Chapter16/Listing16.16.SimpleQueryExpression.cs
src/Chapter16/Listing16.16.SimpleQueryExpression.cs
@@ -16,7 +16,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter16.Listing16_16
{
IEnumerable<string> selection =
from word in CSharp.Keywords
- where word.Contains('*')
+ where !word.Contains('*')
select word;
foreach(var selectionWord in selection)

MODIFY
src/Chapter16/Listing16.17.StandardQueryOperatorSyntax.cs
src/Chapter16/Listing16.17.StandardQueryOperatorSyntax.cs
@@ -12,10 +12,10 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter16.Listing16_17
ShowContextualKeywords3();
}
- private static void ShowContextualKeywords3()
+ private static void ShowContextualKeywords2()
{
IEnumerable<string> selection =
- CSharp.Keywords.Where(word => word.Contains('*'));
+ CSharp.Keywords.Where(word => !word.Contains('*'));
foreach(var selectionWord in selection)
{

Errata & src update for change on pg. 725

Pieter Le Roux      | 16          | 725         | in Listing 16.16 and Listing 16.17, add "!" prior to "word. Contains('*')" to match Listing 16.01