I've looked around this forum, and the rest of the internet, but my code is not working. Here is the problem:
I read XML files that are in en-US culture. The decimal separator is a dot ".".
Given the string "123.45", I want to convert the separator from a dot, to a comma. The current code doesn't work.
String tmp = "123.45";
System.Globalization.CultureInfo myInfo = System.Globalization.CultureInfo.CurrentUICulture;
/****The above line returns my culture, es-ES where the number separator is ","***/
System.Windows.Forms.MessageBox.Show("New value: "+ Decimal.Parse(test, myInfo));
/***The above line displays the result "12345"***/
I have a lot of variables to put through this process so parsing strings isn't really useful at this point.
Any help is appreciated.