For our multi-tier application, we use XmlConvert.ToString()
to generate an xml.
This XML String is sent to a physical device for its configuration by our "configuration application".
Another application is responsible to connect the this physical device and has to check if the remote physical device has the same configuration.
We check that every field has the same String value.
We write the value with
stringValue = XmlConvert.ToString((decimal)objValue);
We don't have the same local between the two software, and it seems that it has effect:
We receive the decimal value 1
. On one application (the configurator) with my custom locales(fr-CH), I've the following output:
"1"
.
But on the other application, with the exact same code, we receive the output "1.0"
, making our verification failing.
I was thinking after a little research( here) that the XmlConvert.ToString was culture invariant). no?
In addition, I cannot configure any "culture" to use to serialize my decimal. What am I missing?