Techincal Blog
Friday, May 1, 2009
C# - Difference between Convert and Parse
Convert.ToInt32(string) and Int32.Parse(string) yield identical results except when the string is actually a null. In this case, Int32.Parse(null) throws an ArgumentNullException; but, Convert.ToInt32(null) returns a zero.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Us
Anu
Ruchi
Shavi
Blog Archive
►
2012
(2)
►
April
(1)
►
February
(1)
►
2011
(1)
►
October
(1)
▼
2009
(5)
►
October
(1)
►
June
(1)
▼
May
(1)
C# - Difference between Convert and Parse
►
April
(1)
►
March
(1)
►
2008
(11)
►
December
(1)
►
October
(2)
►
September
(8)
No comments:
Post a Comment