Fixing the Vector64/128/256<T>.ToString(string) methods to pass `null` for the format...
authorTanner Gooding <tagoo@outlook.com>
Tue, 4 Dec 2018 13:51:50 +0000 (05:51 -0800)
committerStephen Toub <stoub@microsoft.com>
Tue, 4 Dec 2018 13:51:50 +0000 (08:51 -0500)
src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128_1.cs
src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256_1.cs
src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64_1.cs

index da73f87..72cbc82 100644 (file)
@@ -323,7 +323,7 @@ namespace System.Runtime.Intrinsics
         /// <exception cref="NotSupportedException">The type of the current instance (<typeparamref name="T" />) is not supported.</exception>
         public string ToString(string format)
         {
-            return ToString(format, CultureInfo.CurrentCulture);
+            return ToString(format, formatProvider: null);
         }
 
         /// <summary>Converts the current instance to an equivalent string representation using the specified format.</summary>
index 3731698..7020b3c 100644 (file)
@@ -325,7 +325,7 @@ namespace System.Runtime.Intrinsics
         /// <exception cref="NotSupportedException">The type of the current instance (<typeparamref name="T" />) is not supported.</exception>
         public string ToString(string format)
         {
-            return ToString(format, CultureInfo.CurrentCulture);
+            return ToString(format, formatProvider: null);
         }
 
         /// <summary>Converts the current instance to an equivalent string representation using the specified format.</summary>
index b190549..be52470 100644 (file)
@@ -270,7 +270,7 @@ namespace System.Runtime.Intrinsics
         /// <exception cref="NotSupportedException">The type of the current instance (<typeparamref name="T" />) is not supported.</exception>
         public string ToString(string format)
         {
-            return ToString(format, CultureInfo.CurrentCulture);
+            return ToString(format, formatProvider: null);
         }
 
         /// <summary>Converts the current instance to an equivalent string representation using the specified format.</summary>