Changes to 12.20, 12.44 and 12.48
MODIFY
src/Chapter12/Listing12.20.NeedingTheTypeParameterToSupportAnInterface.cs
src/Chapter12/Listing12.20.NeedingTheTypeParameterToSupportAnInterface.cs
@@ -18,7 +18,6 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter12.Listing12_20
get { return _SubItems; }
set
{
- #region INCLUDE
#region HIGHLIGHT
IComparable<T> first;
// ERROR: Cannot implicitly convert type...
@@ -37,7 +36,6 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter12.Listing12_20
//}
_SubItems = value;
#endregion HIGHLIGHT
- #endregion INCLUDE
}
}
private Pair<BinaryTree<T>> _SubItems;

MODIFY
src/Chapter12/Listing12.44.ContravarianceUsingTheInTypeParameterModifier.cs
src/Chapter12/Listing12.44.ContravarianceUsingTheInTypeParameterModifier.cs
ICompareThings<Fruit> fc = new FruitComparer();
Apple apple1 = new Apple();
-
Apple apple2 = new Apple();
Orange orange = new Orange();

MODIFY
src/Chapter12/Listing12.48.CILWithExclamationPointNotation.cs
src/Chapter12/Listing12.48.CILWithExclamationPointNotation.cs
@@ -8,7 +8,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter12.Listing12_48
extends [mscorlib]System.Object
{
#region HIGHLIGHT
- .field private !0[ ] items
+ .field private !0[ ] _Items
#endregion HIGHLIGHT
...
}

Changes to 12.20, 12.44 and 12.48