title: How to make a custom TypeConverter for a given type with XmlSerializer?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2339782/xml-serialization-and-namespace-prefixes">XML Serialization and namespace prefixes</a><br>
    <a href="https://stackoverflow.com/questions/5963423/xmlserializer-property-converter">XmlSerializer property converter</a>  </p>
  </blockquote>
  
  
  
  <p>The question is how to create a custom TypeConverter for a type such as Boolean when de/serializing Xml in C#?</p>
  
  <pre><code>&lt;Root&gt;
    &lt;Flag&gt;True&lt;/Flag&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>Currently this does not work because the value 'True' has a capital letter.  I want the TypeConverter to take care of converting value to a Boolean.</p>
  
  <p>I know there are a couple ways to achieve this, but I need it as a general solution.</p>