T
Tony Johansson
Hello!
Here I have two example that can convert from a string to int.
I can't undertstand why the last example give a compile error saying "cannot
convert type 'string' to 'int' ?
can somebody explain that.
string test = "123";
int tal1 = int.Parse(test);
int tal2 = Convert.ToInt32(test);
int tal3 = (int)test;
//Tony
Here I have two example that can convert from a string to int.
I can't undertstand why the last example give a compile error saying "cannot
convert type 'string' to 'int' ?
can somebody explain that.
string test = "123";
int tal1 = int.Parse(test);
int tal2 = Convert.ToInt32(test);
int tal3 = (int)test;
//Tony