G
Guest
int.Parse() OR Convert.ToInt32() OR (int)
Hi,
Is there any sort of convention as to when its appropriate to use
int.Parse(), Convert.ToInt32() or casting to int?
At the moment I am using them interchangeably. If one doesnt work, i try
another one.
I know that int.Parse is for creating an int from a string, but for
Convert.ToInt32() would do the same thing.
What are real life instances when one should be preferred over the other.?
thank you..
Hi,
Is there any sort of convention as to when its appropriate to use
int.Parse(), Convert.ToInt32() or casting to int?
At the moment I am using them interchangeably. If one doesnt work, i try
another one.
I know that int.Parse is for creating an int from a string, but for
Convert.ToInt32() would do the same thing.
What are real life instances when one should be preferred over the other.?
thank you..