<?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: Copying Entities in an OO Fashion</title>
	<atom:link href="http://benreichelt.net/blog/2005/10/31/copying-entities-in-an-oo-fashion/feed/" rel="self" type="application/rss+xml" />
	<link>http://benreichelt.net/blog/2005/10/31/copying-entities-in-an-oo-fashion/</link>
	<description></description>
	<lastBuildDate>Tue, 18 Aug 2009 22:20:45 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Anonymous</title>
		<link>http://benreichelt.net/blog/2005/10/31/copying-entities-in-an-oo-fashion/comment-page-1/#comment-494</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 03 Nov 2005 14:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2005/10/31/copying-entities-in-an-oo-fashion/#comment-494</guid>
		<description>ADO.NET Provider Model Fundamentals [Via: dhayden ]
Ajax&#039;s responseXML Error [Via: ]

Anticipated...</description>
		<content:encoded><![CDATA[<p>ADO.NET Provider Model Fundamentals [Via: dhayden ]<br />
Ajax&#8217;s responseXML Error [Via: ]</p>
<p>Anticipated&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: breichelt</title>
		<link>http://benreichelt.net/blog/2005/10/31/copying-entities-in-an-oo-fashion/comment-page-1/#comment-493</link>
		<dc:creator>breichelt</dc:creator>
		<pubDate>Tue, 01 Nov 2005 09:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2005/10/31/copying-entities-in-an-oo-fashion/#comment-493</guid>
		<description>Thanks for the comment Dennis, that would be pretty convenient :)  To support an object copy (as opposed to a database copy), we are going to use a binary serializer.  We&#039;ll serialize the object, and the immediately deserialize it back to an object and then return it.  This way its a brand new object (not another reference) and its an exact copy.</description>
		<content:encoded><![CDATA[<p>Thanks for the comment Dennis, that would be pretty convenient <img src='http://benreichelt.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   To support an object copy (as opposed to a database copy), we are going to use a binary serializer.  We&#8217;ll serialize the object, and the immediately deserialize it back to an object and then return it.  This way its a brand new object (not another reference) and its an exact copy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis van der Stelt</title>
		<link>http://benreichelt.net/blog/2005/10/31/copying-entities-in-an-oo-fashion/comment-page-1/#comment-492</link>
		<dc:creator>Dennis van der Stelt</dc:creator>
		<pubDate>Tue, 01 Nov 2005 03:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2005/10/31/copying-entities-in-an-oo-fashion/#comment-492</guid>
		<description>I just learned this myself a few days ago, it&#039;s called a copy constructor. It&#039;s apparently something from C++, and in C# it doesn&#039;t exist.

Read more about it here:
http://msdn2.microsoft.com/en-us/library/ms173116.aspx

Summary:
While creating a new object, in its constructor, you pass in an object of the same type. The constructor will then copy the passed object into itself, making an exact copy.

No idea if C++ supports this by default, unfortunatly C# doesn&#039;t. But perhaps with some reflection, you can create this yourself.</description>
		<content:encoded><![CDATA[<p>I just learned this myself a few days ago, it&#8217;s called a copy constructor. It&#8217;s apparently something from C++, and in C# it doesn&#8217;t exist.</p>
<p>Read more about it here:<br />
<a href="http://msdn2.microsoft.com/en-us/library/ms173116.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms173116.aspx</a></p>
<p>Summary:<br />
While creating a new object, in its constructor, you pass in an object of the same type. The constructor will then copy the passed object into itself, making an exact copy.</p>
<p>No idea if C++ supports this by default, unfortunatly C# doesn&#8217;t. But perhaps with some reflection, you can create this yourself.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
