Hello,
In Listing 15-7 (p. 336) the implementation of
GetAttributesToIncludeInEqualityCheck() should be:
Code:
protected override IEnumerable<object> GetAttributesToIncludeInEqualityCheck()
{
return new List<Object> { ToTwoDecimalPlaces(DistanceInMeters) };
}
to reflect the fact that
ToTwoDecimalPlaces private method should be applied when checking for equality of Meters objects and make the alternative of using a base class have the same results with the original
Meters class.