title: How to hide a property into a base class for XML serialization
body: <p>Let I've a base class</p>
  
  <pre><code>public class MyClass
  {
      private bool _success;
      public bool Success
      {
          get { return _success; }
          set { _success = value; }
      }
  }
  </code></pre>
  
  <p>and a derived class </p>
  
  <pre><code>public class MySubClass : MyClass
  {
      public string str { get; set; }
  }
  </code></pre>
  
  <p><strong>Question:</strong> How can I to serialize <code>MySubClass</code> to <code>XML</code> such that there is no <code>&lt;Success&gt;</code> tag in the serialization result?</p>