Immediate Window question

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
 
I

Ian Oliver

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top