Possible Duplicate:
Whats the main difference between int.Parse() and Convert.ToInt32
Hi
I want to know what is the different between :
Convert.ToInt16 or Convert.ToInt32 or Convert.ToInt64
vs
Int.Parse
both of them are doing the same thing so just want to know what the different?
Convert.ToIntconverts an object to an integer and returns 0 if the value was null.Parseconvert a string to an integer and throws an exception if the value wasn’t able to convert