<?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"
	>
<channel>
	<title>Comments on: Extending CopyHelper using Generics</title>
	<atom:link href="http://www.alteridem.net/2008/07/21/extending-copyhelper-using-generics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alteridem.net/2008/07/21/extending-copyhelper-using-generics/</link>
	<description>Software by Design</description>
	<pubDate>Sat, 22 Nov 2008 05:21:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Extending CopyHelper using Extension Methods &#187; Alteridem Consulting</title>
		<link>http://www.alteridem.net/2008/07/21/extending-copyhelper-using-generics/#comment-2153</link>
		<dc:creator>Extending CopyHelper using Extension Methods &#187; Alteridem Consulting</dc:creator>
		<pubDate>Tue, 22 Jul 2008 13:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.alteridem.net/2008/07/21/extending-copyhelper-using-generics/#comment-2153</guid>
		<description>[...] Extending CopyHelper using Generics     22nd Jul, [...]</description>
		<content:encoded><![CDATA[<p>[...] Extending CopyHelper using Generics     22nd Jul, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Prouse</title>
		<link>http://www.alteridem.net/2008/07/21/extending-copyhelper-using-generics/#comment-2152</link>
		<dc:creator>Rob Prouse</dc:creator>
		<pubDate>Tue, 22 Jul 2008 12:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.alteridem.net/2008/07/21/extending-copyhelper-using-generics/#comment-2152</guid>
		<description>Jarrett,

That is very similar to where I am going in the next post except that I also use generics so that you can copy from one type to another.</description>
		<content:encoded><![CDATA[<p>Jarrett,</p>
<p>That is very similar to where I am going in the next post except that I also use generics so that you can copy from one type to another.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarrett Vance</title>
		<link>http://www.alteridem.net/2008/07/21/extending-copyhelper-using-generics/#comment-2151</link>
		<dc:creator>Jarrett Vance</dc:creator>
		<pubDate>Tue, 22 Jul 2008 05:08:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.alteridem.net/2008/07/21/extending-copyhelper-using-generics/#comment-2151</guid>
		<description>I use an extension method to copy fields that have a public getter and setter.
public static void CopyFrom(this T to, T from)
{
  foreach (PropertyInfo field in typeof(T).GetProperties())
  {
      if (field.CanWrite) field.SetValue(to, field.GetValue(from, null), null);
  }
}</description>
		<content:encoded><![CDATA[<p>I use an extension method to copy fields that have a public getter and setter.<br />
public static void CopyFrom(this T to, T from)<br />
{<br />
  foreach (PropertyInfo field in typeof(T).GetProperties())<br />
  {<br />
      if (field.CanWrite) field.SetValue(to, field.GetValue(from, null), null);<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Method to Copy Data Between Objects of Different Types &#187; Alteridem Consulting</title>
		<link>http://www.alteridem.net/2008/07/21/extending-copyhelper-using-generics/#comment-2147</link>
		<dc:creator>Method to Copy Data Between Objects of Different Types &#187; Alteridem Consulting</dc:creator>
		<pubDate>Mon, 21 Jul 2008 15:36:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.alteridem.net/2008/07/21/extending-copyhelper-using-generics/#comment-2147</guid>
		<description>[...] Read Properties from an MSI File Extending CopyHelper using Generics &#187;    9th Jul, [...]</description>
		<content:encoded><![CDATA[<p>[...] Read Properties from an MSI File Extending CopyHelper using Generics &raquo;    9th Jul, [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
