The Convert class would be pretty useless in this example, since
the Convert.ToInt32 is only a wrapper for the Int32.Parse method, so
you would only add another call on the equation. That is, unless you
need to convert from a specific base for which the ParseNumber
class will be used.
//Andreas
--
ANDREAS HÅKANSSON
STUDENT OF SOFTWARE ENGINEERING
andreas (at) selfinflicted.org
int i = int.Parse( strVar );
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.