double.PositiveInfinity, NaN string representations depends on culture settings. E.g. PositiveInfinity can be "Infinity", "∞", "бесконечность" and so on. Therefore, current code in StringToDoubleConverter may fail on Infinity and NaN deserialization.
In this PR I use InvariantCulture ToString conversion for double.NaN and double.PositiveInfinity to avoid it.
double.PositiveInfinity, NaN string representations depends on culture settings. E.g. PositiveInfinity can be "Infinity", "∞", "бесконечность" and so on. Therefore, current code in StringToDoubleConverter may fail on Infinity and NaN deserialization.
In this PR I use InvariantCulture ToString conversion for double.NaN and double.PositiveInfinity to avoid it.