title: How to XML serialize child class with its base class
body: <p>I am able to serialize a single type/class but is there a way that I can serialize it base class too?</p>
  
  <p>For example:</p>
  
  <pre><code>class B:A
  </code></pre>
  
  <p>Here I am able to serialize class B but how can I serialize class A ?</p>