Is it better to use "0" concatenation in Convert.ToInt32() function call

Posted by Asim Sajjad on Stack Overflow See other posts from Stack Overflow or by Asim Sajjad
Published on 2010-03-31T04:58:43Z Indexed on 2010/03/31 5:03 UTC
Read the original article Hit count: 229

Filed under:

Is better to use the below statement

Convert.ToInt32("0" + stringValue)

If not then why?

I know that it is better to user int.TryParse() function, which is better, but what about the above statement.

© Stack Overflow or respective owner

Related posts about c#