I am deserializing a xml-configuration file using the following code:
// Create object by deserializing the given xml document
var serializer = new XmlSerializer
XmlSerializer class use the format configuration of your OS, it is configured in region section, in order your program uses a specific format, you could assign directly to the Thread, somenthing like below. For example if you live in a country of Latinoamerica is pretty common to use , insted of . that it is the standar representation.
//Write this code at the begining of the program
CultureInfo culture = (CultureInfo)CultureInfo.CurrentCulture.Clone();
culture.NumberFormat.NumberDecimalSeparator = "."; //Force use . insted of ,
System.Threading.Thread.CurrentThread.CurrentCulture = culture;