title: C# inherit(kind off)/use the properties of multiple classes in a single class
body: <p>Let's say I have 2 classes like this:</p>
  
  <pre><code>public class A
  {
      public string P1{ get; set; }
      public string P2{ get; set; }
  }
  
  public class B
  {
      public string P3{ get; set; }
      public string P4{ get; set; }
  }
  </code></pre>
  
  <p>and I need a class like this:</p>
  
  <pre><code>public class C
  {
      public string P1{ get; set; }
      public string P2{ get; set; }
      public string P3{ get; set; }
      public string P4{ get; set; }
  }
  </code></pre>
  
  <p>it it possible for the class C to use class A and B instead of re-declaring all the properties ?<br/>
  (I need this for DTOs)</p>