Immediate Window question

  • Thread starter Thread starter Ian Oliver
  • Start date Start date
I

Ian Oliver

I am debugging an example and have a breakpoint set:

int lhs;
lhs = int.Parse("43") // break point here


I can execute the line with the breakpoint and lhs gets the value 43

So why when I go to the immediate window do I get this:

?int.Parse("43")
error: identifier 'int' out of scope


Thanks, Ian
 
Thanks, now I know how to do this.

Still puzzled though, int is the c# compiler alias for Int32, so why
doesn't int.Parse work in the immediate window?

Ian
 
Back
Top