title: C# serialize decimal to xml
body: <p>I got a decimal property, like </p>
  
  <p><code>[XmlElementAttribute(DataType = "decimal")] decimal Price</code></p>
  
  <p>The problem is that I wanna force it to serialize always with precision of 2, but if the price is 10.50 it will be serialized to XML like <code>&lt;Price&gt;10.5&lt;/Price&gt;</code>.</p>
  
  <p>Theres any way to force it (without creating a new property or changing the get of this property? I'm looking for some way to do this only sending a pattern to the XmlSerializer (or the XmlElementAttribute) or any smart way to do this ?</p>
  
  <p>Thanks</p>