What is best int.Parse vs Convert.ToInt32 in C#

added by codegain
11/29/2010 9:18:10 PM

0 Kicks, 118 Views

Both int.Parse and Convert.ToInt32 are used to convert string into the integer but Only difference between them is to Convert.ToInt32 handle null and returns "0" as output and int.parse is not going to handle NULL and will give a Argument Null Exception.