Hi to you,
TryParse is a little bit slower. If you're sure that your string is a
numeric (You can use RegularExpression) then i suggest you Int32.Parse or
int.Parse (same thing)
--
Nivek Eroom
Post message to group, everyones got benefits
"Frank Oquendo" <fr*******@acadx.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Jeff Reed wrote:
Any idea how I can convert string to Int32?
int.Parse(string)
There's also the Convert class or double.TryParse. I like TryParse
because it won't throw an exception.
--
There are 10 kinds of people. Those who understand binary and those who
don't.
http://code.acadx.com
(Pull the pin to reply)