Hi Sushant Bhatia,
The Convert class is designed to convert a wide range of Types, so you can
convert more types to Decimal than you can with Decimal.Parse, which can
only deal with String. On the other hand Decimal.Parse allows you to
specify a NumberStyle.
Decimal and decimal are aliases and are equal.
For Convert.ToDecimal(string), Decimal.Parse is called internally.
On 13 Mar 2005 00:21:03 -0800, <su************@gmail.com> wrote:
Whats the difference between :-
1. Convert.ToDecimal(stringNumber)
2. Decimal.Parse(stringNumber)
3. decimal.Parse(stringNumber)
Thanks.
Sushant Bhatia
--
Happy Coding!
Morten Wennevik [C# MVP]