Ch. 16 pdf changes
MODIFY
src/Chapter16/Listing16.01.SimpleQueryExpression.cs
src/Chapter16/Listing16.01.SimpleQueryExpression.cs
@@ -18,13 +18,13 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter16.Listing16
"false","finally","fixed","float","for","foreach",
"from*","get*","global*","goto","group*","if","implicit",
"in","int","interface","internal","into*","is","join*",
- "let*","lock","long", "nameof*", "namespace","new","nonnull*",
- "null","object","on*","operator","orderby*","out","override",
- "params","partial*","private","protected","public",
- "readonly","ref","remove*","return","sbyte","sealed",
- "select*","set*","short","sizeof","stackalloc","static",
- "string","struct","switch","this","throw","true","try",
- "typeof","uint","ulong","unchecked","unsafe","ushort",
+ "let*","lock","long", "nameof*", "namespace","new",
+ "nonnull*","null","object","on*","operator","orderby*",
+ "out","override","params","partial*","private","protected",
+ "public","readonly","ref","remove*","return","sbyte",
+ "sealed","select*","set*","short","sizeof","stackalloc",
+ "static","string","struct","switch","this","throw","true",
+ "try","typeof","uint","ulong","unchecked","unsafe","ushort",
"using","value*","var*","virtual","void","volatile"
,"when*","where*","while","yield*"
});
@@ -62,6 +62,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter16.Listing16_01
Console.Write(keyword + " ");
}
}
+ //...
#endregion INCLUDE
}
}

MODIFY
src/Chapter16/Listing16.02.ProjectingUsingQueryExpressions.cs
src/Chapter16/Listing16.02.ProjectingUsingQueryExpressions.cs
List1(Directory.GetCurrentDirectory(), "*");
}
#endregion EXCLUDE
- public static void List1(string rootDirectory, string searchPattern)
+ public static void List1
+ (string rootDirectory, string searchPattern)
{
#region HIGHLIGHT
IEnumerable<string> fileNames = Directory.GetFiles(

MODIFY
src/Chapter16/Listing16.03.TuplesWithinQueryExpressions.cs
src/Chapter16/Listing16.03.TuplesWithinQueryExpressions.cs
List2(Directory.GetCurrentDirectory(), "*");
}
#endregion EXCLUDE
- public static void List2(string rootDirectory, string searchPattern)
+ public static void List2
+ (string rootDirectory, string searchPattern)
{
#region HIGHLIGHT
var fileNames = Directory.EnumerateFiles(

MODIFY
src/Chapter16/Listing16.11.SelectingTupleFollowingTheGroupbyClause.cs
src/Chapter16/Listing16.11.SelectingTupleFollowingTheGroupbyClause.cs
@@ -20,7 +20,8 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter16.Listing16_11
from word in CSharp.Keywords
group word by word.Contains('*');
- IEnumerable<(bool IsContextualKeyword, IGrouping<bool, string> Items)> selection =
+ IEnumerable<
+ (bool IsContextualKeyword, IGrouping<bool, string> Items)> selection =
from groups in keywordGroups
select
(
@@ -31,7 +32,8 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter16.Listing16_11
foreach (
- (bool isContextualKeyword, IGrouping<bool, string> items) in selection)
+ (bool isContextualKeyword, IGrouping<bool, string> items)
+ in selection)
{
Console.WriteLine(Environment.NewLine + "{0}:",

MODIFY
src/Chapter16/Listing16.12.SelectingWithoutTheQueryContinuation.cs
src/Chapter16/Listing16.12.SelectingWithoutTheQueryContinuation.cs
@@ -15,7 +15,8 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter16.Listing16_12
#endregion EXCLUDE
private static void GroupKeywords1()
{
- IEnumerable<(bool IsContextualKeyword, IGrouping<bool, string> Items)> selection =
+ IEnumerable<
+ (bool IsContextualKeyword, IGrouping<bool, string> Items)> selection =
from word in CSharp.Keywords
#region HIGHLIGHT
group word by word.Contains('*')

Ch. 16 pdf changes