convert string to int

  • Thread starter Thread starter William Stacey
  • Start date Start date
Congrats Mr Skeet,

I see you're a dad! =o)

Dan.

William Stacey said:
Thats good info. I would think that after you got that far, converting to a
number yourself could be faster then calling int.parse() or the like.

Hmm... possibly, but it would be significantly harder, I suspect. There
are cases that my code still won't catch - I still rely on int.Parse()
throwing an exception in the rare cases that I miss.
 
Congrats Mr Skeet,

I see you're a dad! =o)

Yup. I nearly posted to the group explaining why I wouldn't be posting
much for a while, but in fact it doesn't seem to have had much effect
in the end :)

For those who want to see photos of Tom, go to
http://www.pobox.com/~skeet/tom

To get back on-topic for a second, I now confess to being one of the
geekiest people on the planet: we were finding it tricky to time
Holly's contractions accurately with a watch, as the only watch we had
with a second hand was tricky to read quickly - so between early
contractions I wrote a little app in C# to time and log the
contractions and the intervals between them. Ah well...
 
Hi,

Yes but you still have to use a try/catch, which is what you are trying to
avoid in the first place :)

Cheers,
 
Hi Igancio,

I am trying to avoid throwing an exception (and not the try/catch block
itself - it would be nice to avoid it too) because it is annoying at debug
time...:)
 
Back
Top