Difference between int.Parse and Convert.ToInt32

Suddenly I thought of knowing what difference is between these both. It sound basic but here we go. 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. Both are almost same except handling null. We have third option available called int.TryParse which can handle all kind of exception and return result as Output Parameter.
Hope this will help you to understand it better.

About Microsoft webcamps

Hi All

Today i got a opportunity to attend the Microsoft web camps event held in Bangalore. it was a great session. Today Speaker was John Galloway and James Senior, both of them are cool guys. They talked mainly on MVC 3 . It was an nice product, having lot of potential to grow.

Overall the session is good. they are lack of material on MVC3 . it will good if they workout on that..

I am planing  to develop some cool MVC application .. Will post that soon.

Regards,

Elam