Wrox Programmer Forums
BOOK: Patterns, Principles and Practices of Domain-Driven Design
This is the forum to discuss the Wrox book Patterns, Principles and Practices of Domain-Driven Design by Scott Millett; ISBN: 978-1-118-71470-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Patterns, Principles and Practices of Domain-Driven Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 29th, 2018, 01:16 AM
Registered User
Join Date: Jan 2013
Posts: 9
Thanks: 0
Thanked 2 Times in 2 Posts
Default Chapter 15 Value Object with attributed-based equality


In Listing 15-7 (p. 336) the implementation of GetAttributesToIncludeInEqualityCheck() should be:

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.

Similar Threads
Thread Thread Starter Forum Replies Last Post
EQUALITY OF PRECEDING ATTRIBUTE pallone XSLT 13 November 26th, 2009 09:17 AM
CREATE JS OBJECT BASED ON XML pallone Javascript How-To 1 September 17th, 2009 07:19 AM
Testing equality between nodes..... help!! trinkets XSLT 12 February 27th, 2007 12:27 PM
OLE Object based on If statement lryckman Access VBA 3 October 25th, 2005 02:40 PM
Name Equality and problems with Java cuskichick Pro JSP 0 June 13th, 2005 12:50 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.