Hello,
First of I want to thanks you for your work. I really like dream!!
Now, my system has a CultureInfo set to Spain, and if I want to add a double element in a XDoc and use
elemXml.Elem("price", this.Price);
i get the number in a non xml-standart format, with a "," decimal separator.
It works with
elemXml.Elem("price",this.Price.ToString("F", CultureInfo.InvariantCulture));
My suggestion is that in the same way you have overloads for
public XDoc Value(bool value) {
return Value(value ? "true" : "false");
}
if you can add some other like
public XDoc Value(double value) {
return Value(value.ToString("F", CultureInfo.InvariantCulture));
}
or something similar.
Thanks.


Reply With Quote