Permalink
Browse files

Merge pull request #750 from leezer3/Patch3

Fix: Use invariant culture when parsing version in Generator.Bind
  • Loading branch information...
Frassle committed Apr 22, 2018
2 parents 3a70472 + 3e4740e commit c455638dd1d2dabe6f790fbf3983a3d7b9542e8f
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Generator.Bind/XmlSpecReader.cs
@@ -25,6 +25,7 @@
using System;
using System.Collections.Generic;
+using System.Globalization;
using System.IO;
using System.Xml.XPath;
using Bind.Structures;
@@ -269,7 +270,7 @@ private DelegateCollection ReadDelegates(XPathNavigator specs, string apiversion
// our current apiversion. Extensions do not have a version,
// so we add them anyway (which is desirable).
if (!String.IsNullOrEmpty(version) && !String.IsNullOrEmpty(apiversion) &&
- Decimal.Parse(version) > Decimal.Parse(apiversion))
+ Decimal.Parse(version, CultureInfo.InvariantCulture) > Decimal.Parse(apiversion, CultureInfo.InvariantCulture))
{
continue;
}

0 comments on commit c455638

Please sign in to comment.