Looks like you will need to work on your CultureInfo a bit. See here:
-
First initialize your CultureInfo variable:
nfi = new CultureInfo("pt-pt")
It should be of type:
-
Then, assign these:
nfi.NumberFormat.NumberGroupSeparator = "." nfi.NumberFormat.NumberDecimalSeparator = ","
-
Finally, do your conversion:
Decimal.Parse("1.000,00", nfi).ToString
It returns:
Here it displayed it as 1000.00
, but that can be fixed by adding your culture to the ToString of the Write Line:
Decimal.Parse("1.000,00", nfi).ToString(new CultureInfo("pt-pt"))