Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/libraries/System.Private.CoreLib/src/System/Reflection/AssemblyNameParser.cs')
-rw-r--r--src/libraries/System.Private.CoreLib/src/System/Reflection/AssemblyNameParser.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libraries/System.Private.CoreLib/src/System/Reflection/AssemblyNameParser.cs b/src/libraries/System.Private.CoreLib/src/System/Reflection/AssemblyNameParser.cs
index 8ab6b644581..13c5a4ed447 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Reflection/AssemblyNameParser.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Reflection/AssemblyNameParser.cs
@@ -3,6 +3,7 @@
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
+using System.Globalization;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
@@ -205,7 +206,8 @@ namespace System.Reflection
if (!char.IsDigit(parts[i][j]))
ThrowInvalidAssemblyName();
}
- if (!(ushort.TryParse(parts[i], out versionNumbers[i])))
+
+ if (!ushort.TryParse(parts[i], NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out versionNumbers[i]))
{
ThrowInvalidAssemblyName();
}