THRIFT-5639 ToString() should use InvariantCulture
Client: netstd
Patch: Jens Geyer
diff --git a/lib/netstd/Thrift/Protocol/ToString.cs b/lib/netstd/Thrift/Protocol/ToString.cs
index 50dd6df..ae69d1c 100644
--- a/lib/netstd/Thrift/Protocol/ToString.cs
+++ b/lib/netstd/Thrift/Protocol/ToString.cs
@@ -18,6 +18,7 @@
 using System;
 using System.Collections;
 using System.Collections.Generic;
+using System.Globalization;
 using System.Text;
 using Thrift.Protocol;
 
@@ -71,9 +72,13 @@
             {
                 sb.Append((self as TBase).ToString());
             }
+            else if (self is double)
+            {
+                sb.Append(((double)self).ToString(CultureInfo.InvariantCulture));
+            }
             else
             {
-                sb.Append(self != null?  self.ToString() : "<null>");
+                sb.Append(self != null ? self.ToString() : "<null>");
             }
         }
     }