Changed Invariant calls to good ol' ToString
This commit is contained in:
parent
837d5ff523
commit
0eb74015f4
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
namespace Ooui
|
namespace Ooui
|
||||||
{
|
{
|
||||||
using static System.FormattableString;
|
|
||||||
|
|
||||||
public class JsonConvert
|
public class JsonConvert
|
||||||
{
|
{
|
||||||
public static void WriteJsonString (System.IO.TextWriter w, string s)
|
public static void WriteJsonString (System.IO.TextWriter w, string s)
|
||||||
|
@ -58,16 +56,16 @@ namespace Ooui
|
||||||
w.Write ('\"');
|
w.Write ('\"');
|
||||||
break;
|
break;
|
||||||
case Color c:
|
case Color c:
|
||||||
WriteJsonString (w, c.ToString());
|
WriteJsonString (w, c.ToString ());
|
||||||
break;
|
break;
|
||||||
case double d:
|
case double d:
|
||||||
w.Write (Invariant ($"{d}"));
|
w.Write (d.ToString (System.Globalization.CultureInfo.InvariantCulture));
|
||||||
break;
|
break;
|
||||||
case int i:
|
case int i:
|
||||||
w.Write (Invariant ($"{i}"));
|
w.Write (i.ToString (System.Globalization.CultureInfo.InvariantCulture));
|
||||||
break;
|
break;
|
||||||
case float f:
|
case float f:
|
||||||
w.Write (Invariant ($"{f}"));
|
w.Write (f.ToString (System.Globalization.CultureInfo.InvariantCulture));
|
||||||
break;
|
break;
|
||||||
case null:
|
case null:
|
||||||
w.Write ("null");
|
w.Write ("null");
|
||||||
|
|
Loading…
Reference in New Issue