What's the best approach to copy some fields of class?
<p>My system should support templates of entity. When user select template some fields should be copied from template entity. Now I have entity as follows:</p>

<pre><code>   public class Report
   {
     // some properties which should be copied, they can be either simple or complex datatypes 
     public string HeaderName {get;set;}
     public IList&lt;Column&gt; Columns {get;set;}
     public IList&lt;State&gt; States {get;set;}
     ...
     // some properties which shouldn't be copied
     public ReportType ReportType {get;set;} // Template, Incomplete, Confirm
     public bool DataType {get;set;}
   }
</code></pre>

<p>I can just assign properties from template entity, but may be exist better approach to do this?</p>

<p>Thanks.</p>
