error parsing double values on german systems
Brought to you by:
opaque
Values of the type double might be misinterpreted on german systems because they are parsed with the locale culture setting. For example the value 12.000 is misinterpreted as 12,000 on german systems.
To avoid this, double values should be parsed with the invariant culture setting:
double value = double.Parse("12.000", System.Globalization.CultureInfo.InvariantCulture);