<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Code Reference &#187; Object Cloning</title>
	<atom:link href="http://sullivan.net/blog/tag/object-cloning/feed/" rel="self" type="application/rss+xml" />
	<link>http://sullivan.net/blog</link>
	<description>A collection of code for my reference (and perhaps other people too)</description>
	<lastBuildDate>Wed, 25 Jan 2012 17:53:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Cloning an object &#8211; easy way</title>
		<link>http://sullivan.net/blog/2009/11/cloning-an-object-easy-way/</link>
		<comments>http://sullivan.net/blog/2009/11/cloning-an-object-easy-way/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 15:30:52 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[c#]]></category>
		<category><![CDATA[Object Cloning]]></category>

		<guid isPermaLink="false">http://sullivan.net/blog/?p=219</guid>
		<description><![CDATA[To clone an object MS says your object should inherit from IClonable. I have read many good and bad comments on this which mention it not being able to do a deel copy and whatever. A quick search will give you lots to read. Using IClonable is a valid option. Then I found one idea [...]]]></description>
			<content:encoded><![CDATA[<p>To clone an object MS says your object should inherit from IClonable. I have read many good and bad comments on this which mention it not being able to do a deel copy and whatever. A quick search will give you lots to read.<br />
Using IClonable is a valid option.</p>
<p>Then I found one idea that I really liked. Serialize your object, than unserialize it. Done!</p>
<p>Things to note:<br />
* Your object must be serializable.<br />
* I have not tested if this works with complex object.<br />
* I have not tested how this handles lazy bindings with nHibernate<br />
* For simple object works great!</p>
<p>TODO: test with complex objects</p>
]]></content:encoded>
			<wfw:commentRss>http://sullivan.net/blog/2009/11/cloning-an-object-easy-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

