Topic: OnlineMapsXML invariant culture fix
Hi !
This is not a bug request, rather a small evolution request to update OnlineMapsXML.cs in order to use invariantCulture while parsing some types (i.e Doubles, by example) that causes exception if not done.
The modification concern Lines 628-630 in \Infinity Code\Online Maps\Scripts\XML\OnlineMapsXML.cs
Would it be possible to change :
[...]
try
{
MethodInfo method = OnlineMapsReflectionHelper.GetMethod(underlyingType, "Parse", new[] {typeof (string)});
if (method != null) obj = (T)method.Invoke(null, new[] { value });
}
[...]
TO
[...]
try
{
MethodInfo method = OnlineMapsReflectionHelper.GetMethod(underlyingType, "Parse", new Type[] { typeof(string), typeof(CultureInfo) });
CultureInfo c = CultureInfo.InvariantCulture;
if (method != null) obj = (T)method.Invoke(null, new object[] { value, c });
}
[...]
..This would prevent us to patch OnlineMapsXML code every time we update the pluggin
Thanks !