Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

System.Convert.ToInt32 vs Int32.Parse

0 views
Skip to first unread message

Paul Aspinall

unread,
Mar 27, 2006, 9:38:13 AM3/27/06
to
Hi
Can anyone offer a comparison of System.Convert.ToInt32 vs Int32.Parse

Thanks


Jason Hales

unread,
Mar 27, 2006, 10:28:03 AM3/27/06
to
The only difference I'm aware of is to do with nulls.

Convert.ToInt32 will return a zero and int32.Parse will throw an
ArgumentNullException

I've found the timings to be pretty much identical at runtime

0 new messages