0
Whats the difference between try.parse and convert.toint32 ?
1 Answer
+ 2
You should use TryParse if you want to try to parse a string and handle the case where the parsing fails gracefully, without throwing an exception.
You should use Convert.ToInt32 if you are certain that the string can be parsed correctly, and you want to throw an exception if it cannot.