<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Implementing a Value Object</title>
	<atom:link href="http://davybrion.com/blog/2007/07/implementing-a-value-object/feed/" rel="self" type="application/rss+xml" />
	<link>http://davybrion.com/blog/2007/07/implementing-a-value-object/</link>
	<description>Trying to walk that thin line between intelligence and ignorance</description>
	<lastBuildDate>Thu, 09 Sep 2010 13:37:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: The Inquisitive Coder - Davy Brion&#8217;s Blog &#187; Blog Archive &#187; Implementing A Value Object With NHibernate</title>
		<link>http://davybrion.com/blog/2007/07/implementing-a-value-object/comment-page-1/#comment-10531</link>
		<dc:creator>The Inquisitive Coder - Davy Brion&#8217;s Blog &#187; Blog Archive &#187; Implementing A Value Object With NHibernate</dc:creator>
		<pubDate>Wed, 25 Mar 2009 22:12:12 +0000</pubDate>
		<guid isPermaLink="false">http://ralinx.wordpress.com/2007/07/08/implementing-a-value-object/#comment-10531</guid>
		<description>[...] covered implementing a Value Object before, but this post is about using Value Objects with NHibernate. First, a little recap of what a [...]</description>
		<content:encoded><![CDATA[<p>[...] covered implementing a Value Object before, but this post is about using Value Objects with NHibernate. First, a little recap of what a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NHibernate composite-element mapping</title>
		<link>http://davybrion.com/blog/2007/07/implementing-a-value-object/comment-page-1/#comment-39</link>
		<dc:creator>NHibernate composite-element mapping</dc:creator>
		<pubDate>Fri, 15 Feb 2008 22:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://ralinx.wordpress.com/2007/07/08/implementing-a-value-object/#comment-39</guid>
		<description>[...] properly implementing Equals() and GetHashCode() with cascade=&quot;all&quot; the persistence (and deletion) [...]</description>
		<content:encoded><![CDATA[<p>[...] properly implementing Equals() and GetHashCode() with cascade=&quot;all&quot; the persistence (and deletion) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Idetrorce</title>
		<link>http://davybrion.com/blog/2007/07/implementing-a-value-object/comment-page-1/#comment-40</link>
		<dc:creator>Idetrorce</dc:creator>
		<pubDate>Sat, 15 Dec 2007 14:09:28 +0000</pubDate>
		<guid isPermaLink="false">http://ralinx.wordpress.com/2007/07/08/implementing-a-value-object/#comment-40</guid>
		<description>very interesting, but I don&#039;t agree with you
Idetrorce</description>
		<content:encoded><![CDATA[<p>very interesting, but I don&#8217;t agree with you<br />
Idetrorce</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davy Brion</title>
		<link>http://davybrion.com/blog/2007/07/implementing-a-value-object/comment-page-1/#comment-38</link>
		<dc:creator>Davy Brion</dc:creator>
		<pubDate>Sat, 18 Aug 2007 09:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://ralinx.wordpress.com/2007/07/08/implementing-a-value-object/#comment-38</guid>
		<description>Thx for the tip and excellent post btw :)</description>
		<content:encoded><![CDATA[<p>Thx for the tip and excellent post btw <img src='http://davybrion.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Brooks</title>
		<link>http://davybrion.com/blog/2007/07/implementing-a-value-object/comment-page-1/#comment-37</link>
		<dc:creator>Marc Brooks</dc:creator>
		<pubDate>Fri, 17 Aug 2007 22:23:32 +0000</pubDate>
		<guid isPermaLink="false">http://ralinx.wordpress.com/2007/07/08/implementing-a-value-object/#comment-37</guid>
		<description>Your implementation of GetHashCode is sub-optimal because it simply does an XOR of the component hash-codes. In many reflectored Microsoft assemblies, I&#039;ve discovered a repeatable practice of doing a shift AND XOR to combine hash-codes.  My typical game is a left-shift of 5 bits, so:

return (_street.GetHashCode() &lt;&lt; 5) ^ _city.GetHashCode();

Of course with many different elements that can get a little ugly so a helper method is in order.  See my blog for that.

http://musingmarc.blogspot.com/2007/08/vtos-rtos-and-gethashcode-oh-my.html</description>
		<content:encoded><![CDATA[<p>Your implementation of GetHashCode is sub-optimal because it simply does an XOR of the component hash-codes. In many reflectored Microsoft assemblies, I&#8217;ve discovered a repeatable practice of doing a shift AND XOR to combine hash-codes.  My typical game is a left-shift of 5 bits, so:</p>
<p>return (_street.GetHashCode() &lt;&lt; 5) ^ _city.GetHashCode();</p>
<p>Of course with many different elements that can get a little ugly so a helper method is in order.  See my blog for that.</p>
<p><a href="http://musingmarc.blogspot.com/2007/08/vtos-rtos-and-gethashcode-oh-my.html" rel="nofollow">http://musingmarc.blogspot.com/2007/08/vtos-rtos-and-gethashcode-oh-my.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
