From 0eb74015f4c0ce682405bc8a38a35662b2ae0010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Loi=CC=88c=20Wolff?= Date: Sun, 15 Apr 2018 20:13:57 +0200 Subject: [PATCH] Changed Invariant calls to good ol' ToString --- Ooui/JsonConvert.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Ooui/JsonConvert.cs b/Ooui/JsonConvert.cs index faa5932..0fd22b4 100644 --- a/Ooui/JsonConvert.cs +++ b/Ooui/JsonConvert.cs @@ -2,8 +2,6 @@ namespace Ooui { - using static System.FormattableString; - public class JsonConvert { public static void WriteJsonString (System.IO.TextWriter w, string s) @@ -58,16 +56,16 @@ namespace Ooui w.Write ('\"'); break; case Color c: - WriteJsonString (w, c.ToString()); + WriteJsonString (w, c.ToString ()); break; case double d: - w.Write (Invariant ($"{d}")); + w.Write (d.ToString (System.Globalization.CultureInfo.InvariantCulture)); break; case int i: - w.Write (Invariant ($"{i}")); + w.Write (i.ToString (System.Globalization.CultureInfo.InvariantCulture)); break; case float f: - w.Write (Invariant ($"{f}")); + w.Write (f.ToString (System.Globalization.CultureInfo.InvariantCulture)); break; case null: w.Write ("null");