ch 14 & 15 removing redundancies
MODIFY
src/Chapter14/Listing14.07.UsingthePlusEqualsAndMinusEqualsDelegateOperators.cs
src/Chapter14/Listing14.07.UsingthePlusEqualsAndMinusEqualsDelegateOperators.cs
using System;
using Listing14_01;
using Listing14_05;
- #region INCLUDE
- #region EXCLUDE
+
public class Program
{
public static void Main()
{
- #endregion EXCLUDE
+ #region INCLUDE
+ //...
Thermostat thermostat = new Thermostat();
Heater heater = new Heater(60);
Cooler cooler = new Cooler(80);
delegate3 -= delegate1;
#endregion HIGHLIGHT
delegate3!(30);
- #region EXCLUDE
+ //...
+ #endregion INCLUDE
}
}
- #endregion EXCLUDE
- #endregion INCLUDE
}
\ No newline at end of file

MODIFY
src/Chapter15/Listing15.27.ProjectionToAnAnonymousType.cs
src/Chapter15/Listing15.27.ProjectionToAnAnonymousType.cs
@@ -4,15 +4,14 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter15.Listing15_27
using System.Collections.Generic;
using System.IO;
using System.Linq;
- #region INCLUDE
- #region EXCLUDE
public class Program
{
public static void Main()
{
string rootDirectory = Directory.GetCurrentDirectory();
string searchPattern = "*";
- #endregion EXCLUDE
+ #region INCLUDE
+ //...
IEnumerable<string> fileList = Directory.EnumerateFiles(
rootDirectory, searchPattern);
#region HIGHLIGHT
@@ -27,7 +26,8 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter15.Listing15_27
};
});
#endregion HIGHLIGHT
- #region EXCLUDE
+ //...
+ #endregion INCLUDE
Print(items);
}
@@ -40,6 +40,4 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter15.Listing15_27
}
}
}
- #endregion EXCLUDE
- #endregion INCLUDE
}

ch 14 & 15 removing redundancies