Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2012/5.0 > BOOK: Patterns, Principles and Practices of Domain-Driven Design
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 29th, 2018, 01:16 AM
Registered User
Points: 62, Level: 1
Points: 62, Level: 1 Points: 62, Level: 1 Points: 62, Level: 1
Activity: 50%
Activity: 50% Activity: 50% Activity: 50%
 
Join Date: Jan 2013
Posts: 9
Thanks: 0
Thanked 2 Times in 2 Posts
Default Chapter 15 Value Object with attributed-based equality

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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
EQUALITY OF PRECEDING ATTRIBUTE pallone XSLT 13 November 26th, 2009 08: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 11:27 AM
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



All times are GMT -4. The time now is 02:18 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.