Oct
29
2013

Difference between Decimal.Parse() vs Convert.ToDecimal()

Almost identical, if you use ILSpy or some other de-compile tool, these are in the mscorlib.dll    **Decimal.Parse**     public static decimal Parse(string s) { return Number.ParseDecimal(s, NumberStyles.Number, NumberFormatInfo.CurrentInfo); }  **Convert.ToDecimal**      public static decimal ToDecimal(string value){ if (value == null) { return 0m; } return decimal.Parse(value, CultureInfo.CurrentCulture); }... [More]

About the author

 

    

Month List

Page List