G
Guest
Hi,
I'm trying to find out the benefits of one type of conversion method over
another.
When would it be best to use casting over Converting e.g.
(int)stringValue as opposed to
Convert.ToInt(stringValue)
or Parse for that matter:
Int32.Parse(stringValue);
small matters, but interesting to me.
Any ideas would be happily taken on board
Thanks in advance
Ant
I'm trying to find out the benefits of one type of conversion method over
another.
When would it be best to use casting over Converting e.g.
(int)stringValue as opposed to
Convert.ToInt(stringValue)
or Parse for that matter:
Int32.Parse(stringValue);
small matters, but interesting to me.
Any ideas would be happily taken on board
Thanks in advance
Ant