Is it possible to deserialize decimal with invariant culture?
I can do that with this pattern:
[XmlIgnore]
public decimal CurrencyValue { get; set; }
[XmlAttribute("CurrencyValue")]
public string CurrencyValueString
{
set { CurrencyValue = Convert.ToDecimal(value, CultureInfo.InvariantCulture); }
}
But my container consists of many decimals and I'm embarrassed doing this many times. Moreover it's look strange.