<?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: Extension methods for copying or cloning objects</title>
	<atom:link href="http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/feed" rel="self" type="application/rss+xml" />
	<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects</link>
	<description>Håvard Stranden&#039;s website</description>
	<lastBuildDate>Tue, 20 Jul 2010 18:33:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: DW</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-815</link>
		<dc:creator>DW</dc:creator>
		<pubDate>Wed, 14 Jul 2010 21:14:07 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-815</guid>
		<description>&lt;p&gt;I found this framework helpful. Thanks.&lt;/p&gt;

&lt;p&gt;One suggestion: in ObjectExtension.cs =&gt; GetInstanceProviders(...) method. It would be good to add the checking for obvious types that cannot be instantiated? E.g using Type.IsInterface or Type.IsAbstract methods. It saves unnecessary exception being thrown. Also, some people use exception debugging in VS which throw all exception, this will generate unnecessary false alarm&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I found this framework helpful. Thanks.</p>

<p>One suggestion: in ObjectExtension.cs =&gt; GetInstanceProviders(&#8230;) method. It would be good to add the checking for obvious types that cannot be instantiated? E.g using Type.IsInterface or Type.IsAbstract methods. It saves unnecessary exception being thrown. Also, some people use exception debugging in VS which throw all exception, this will generate unnecessary false alarm</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Håvard</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-714</link>
		<dc:creator>Håvard</dc:creator>
		<pubDate>Wed, 19 May 2010 09:10:35 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-714</guid>
		<description>&lt;p&gt;@Yuri I can assure you that Copyable does what it says &quot;on the box&quot;. :) Copyable is in production at several major companies. If you have issues, please send me a test project that reproduces the problem, and I&#039;ll look into it.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Yuri I can assure you that Copyable does what it says &#8220;on the box&#8221;. <img src='http://ox.no/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Copyable is in production at several major companies. If you have issues, please send me a test project that reproduces the problem, and I&#8217;ll look into it.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Håvard</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-713</link>
		<dc:creator>Håvard</dc:creator>
		<pubDate>Wed, 19 May 2010 09:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-713</guid>
		<description>&lt;p&gt;@Ilya Interesting, I&#039;ll hopefully be able to reproduce and patch it. Thanks for reporting!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Ilya Interesting, I&#8217;ll hopefully be able to reproduce and patch it. Thanks for reporting!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Yuri</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-711</link>
		<dc:creator>Yuri</dc:creator>
		<pubDate>Wed, 19 May 2010 02:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-711</guid>
		<description>&lt;p&gt;After second check it doesn&#039;t even copy the string member variables :/&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>After second check it doesn&#8217;t even copy the string member variables :/</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Yuri</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-710</link>
		<dc:creator>Yuri</dc:creator>
		<pubDate>Wed, 19 May 2010 02:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-710</guid>
		<description>&lt;p&gt;Does not work with WPF either, templates aren&#039;t copied.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Does not work with WPF either, templates aren&#8217;t copied.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Yuri</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-709</link>
		<dc:creator>Yuri</dc:creator>
		<pubDate>Wed, 19 May 2010 02:38:29 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-709</guid>
		<description>&lt;p&gt;I recommend you do not use this code, author states it will copy any object, it&#039;s false, it didn&#039;t copy my objects properly and like many people stated it&#039;s flawed.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I recommend you do not use this code, author states it will copy any object, it&#8217;s false, it didn&#8217;t copy my objects properly and like many people stated it&#8217;s flawed.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Håvard</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-696</link>
		<dc:creator>Håvard</dc:creator>
		<pubDate>Thu, 06 May 2010 07:03:14 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-696</guid>
		<description>&lt;p&gt;CB: Sadly, Copyable won&#039;t easily work with Silverlight. Copyable uses reflection on non-public members, which isn&#039;t available on the Silverlight platform, so to get Copyable working on Silverlight, someone will have to implement a new way of copying objects.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>CB: Sadly, Copyable won&#8217;t easily work with Silverlight. Copyable uses reflection on non-public members, which isn&#8217;t available on the Silverlight platform, so to get Copyable working on Silverlight, someone will have to implement a new way of copying objects.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: CB</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-694</link>
		<dc:creator>CB</dc:creator>
		<pubDate>Wed, 05 May 2010 18:23:51 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-694</guid>
		<description>&lt;p&gt;Hello,
Thanks for creating this, it looks very useful...&lt;/p&gt;

&lt;p&gt;I am working on a Silverlight 4 project, and tried to build Copyable for SL 4.
- Create new SL 4 class lib project
- Copy source files in to new project
When I build, I get this error:
C:&#092;Src32&#092;OX.Copyable-SL&#092;OX.Copyable-SL&#092;ObjectExtensions.cs(23,59): error CS0122: &#039;System.AssemblyLoadEventArgs&#039; is inaccessible due to its protection level&lt;/p&gt;

&lt;p&gt;Does anyone know of a workaround to get this to build with SL 4?&lt;/p&gt;

&lt;p&gt;Thanks again...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello,
Thanks for creating this, it looks very useful&#8230;</p>

<p>I am working on a Silverlight 4 project, and tried to build Copyable for SL 4.
- Create new SL 4 class lib project
- Copy source files in to new project
When I build, I get this error:
C:&#92;Src32&#92;OX.Copyable-SL&#92;OX.Copyable-SL&#92;ObjectExtensions.cs(23,59): error CS0122: &#8216;System.AssemblyLoadEventArgs&#8217; is inaccessible due to its protection level</p>

<p>Does anyone know of a workaround to get this to build with SL 4?</p>

<p>Thanks again&#8230;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Håvard</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-690</link>
		<dc:creator>Håvard</dc:creator>
		<pubDate>Wed, 21 Apr 2010 14:19:10 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-690</guid>
		<description>&lt;p&gt;Hi Alix, are you using the latest version from GitHub? If not, please try with that. Also, could you provide a small sample that will reproduce the problem?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Alix, are you using the latest version from GitHub? If not, please try with that. Also, could you provide a small sample that will reproduce the problem?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Alix</title>
		<link>http://ox.no/posts/extension-methods-for-copying-or-cloning-objects/comment-page-1#comment-689</link>
		<dc:creator>Alix</dc:creator>
		<pubDate>Mon, 19 Apr 2010 14:32:04 +0000</pubDate>
		<guid isPermaLink="false">http://ox.no/posts/extension-methods-for-copying-or-cloning-objects#comment-689</guid>
		<description>&lt;p&gt;Hi, Håvard, thanks for making the code available. I&#039;d really like to use it; however, I&#039;m getting a StackOverflowException in this line:
return FormatterServices.GetUninitializedObject(instanceType);
of method DeduceInstance(object instance) in class ObjectExtensions. My objects have circular dependencies, but I see you keep a record of the visited nodes in the dependency graph, so this shouldn&#039;t be a problem, should it?
Thanks,
Alix&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi, Håvard, thanks for making the code available. I&#8217;d really like to use it; however, I&#8217;m getting a StackOverflowException in this line:
return FormatterServices.GetUninitializedObject(instanceType);
of method DeduceInstance(object instance) in class ObjectExtensions. My objects have circular dependencies, but I see you keep a record of the visited nodes in the dependency graph, so this shouldn&#8217;t be a problem, should it?
Thanks,
Alix</p>]]></content:encoded>
	</item>
</channel>
</rss>
