Have try like this :
decimal value;
bool b = Decimal.TryParse("0.1", NumberStyles.Any, new CultureInfo("en-US"), out value);
The best way would likely be to use the Decimal.Parse() method as you would traditionally with any decimal string values.
You can use NumberStyles.Currency to specify that the values be read in as currency, which will take care of any currency-related values (you will need to add a Reference to System.Globalalization to use this :
using System.Globalization;
Decimal.Parse also accepts a third-parameter, which will allow you to explicitly set the IFormatProvider
if you so choose and wish to you a specific Culture :
decimal value = Decimal.Parse(currency, NumberStyles.Currency, CultureInfo.InvariantCulture); //yields 15.55
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…