Fork me on GitHub

Programming, Internet & more

Category Archives for c#

C# How to force decimal precision in xml serialization

Recently, I’ve tried to serialize some xml in c# and stumbled accross the problem that I had to force the precision scale of decimal values. By default the XmlSerializer uses the exact value of the underlying decimal value while serializing to xml. That means, if you assign 2 to a decimal value your xml will […]

Also posted in programming, tutorials | Leave a comment