Why would double.TryParse() with these settings not parse
double.TryParse("1.035,00",
NumberStyles.AllowCurrencySymbol | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite |
NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign,
GlobalSettings.Instance.DefaultCulture, out price);
where DefaultCulture is sl-SI (Slovenian), which has the dot . as digit grouping symbol and , as decimal point. The price remains 0 after the parse.
?
boolthat indicates if parsing the value succeeded or failed. For your example, TryParse returnsfalse. So the cause forpricebeing0is that the string couldn't be parsed.