Bill MildBound Brook, NJ · since 2008
  • Writing
  • Topics
  • About
  • Bound Brook
  • Bible Study
June 04, 2010 Programming

What's the difference between Convert.ToInt32(string) and Int32.Parse(string)?

The two give identical results, except where the string is null. Convert.ToInt32(null) returns zero, whereas Int32.Parse(null) throws anArgumentNullException.

hat tip: http://www.yoda.arachsys.com/csharp/faq/#convert.parse

Posted June 04, 2010 0 comments
← NewerNext post Older →Previous post

Comments

Post a Comment

© Bill Mild · Bound Brook, New Jersey Feed
Powered by Blogger

Report Abuse