title: How to map properties of two different objects?
body: <p>I want to know how to map fields of two different objects and assign the values to it.</p>
  
  <p>Eample:</p>
  
  <pre><code>public class employee
  {
      public int ID { get; set; }
      public string Name { get; set; }
  }
  
  public class manager
  {
      public int MgrId { get; set; }
      public string MgrName { get; set; }
  }
  </code></pre>
  
  <p>Now I have a List object. I want to assign the values to "manager" class. Any automatic way to do that. I can do it explicitly and assigning values to it. But my object is very huge thats the problem. I dont want to use any third party tools too.</p>
  
  <p><strong>Note: It can't have any prefix for manager. It can be anything. (Ex: mgrId can be like mgrCode)</strong></p>