I'm a French developer and my local setting a set for
displaying "French Number" ( 1 000,00 for instance).
With such a configuration a call to "double.Parse
(temp) " fails when trying to get the majorver part of a
reference in the function ParseProjectFile. When
specifying the NumberStyle AllowDecimalPoint
(double.Parse(temp,NumberStyles.AllowDecimalPoint)
it works better.
Eric Boyard
eboyard@fr.xrt.com
Logged In: NO
Hi,
I'm discovering .NET and I made a mistake on the correction
to be made. AVisual Basic use english formatted numbers
the proper correction should be:
CultureInfo us = new CultureInfo("en-US");
ushort majorVer = (-1 < temp.IndexOf(".")) ? (ushort)
double.Parse(temp,us) : ushort.Parse(temp);
Eric Boyard
eboyard@fr.xrt.com