Command window in C# sucks

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there, I'm totally lost on why command window in C# can not run this :

?intA.toString()

It's simple ,right ? but IDE give me a error "error: 'intA.ToString' does
not exist".

I know there are two mode, and the question is not about this, also I feel
very supprised that there are also some silimair questions posted with no
answer at all.

Maybe somebody here can share some light.
 
is .toString() an actual method or function of intA, or did you mean
".ToString()"? In C# capitalization counts.
 
walter said:
Hi there, I'm totally lost on why command window in C# can not run this :

?intA.toString()

It's simple ,right ? but IDE give me a error "error: 'intA.ToString' does
not exist".

I know there are two mode, and the question is not about this, also I feel
very supprised that there are also some silimair questions posted with no
answer at all.

Maybe somebody here can share some light.


? intA
or
? intA.ToString()

Willy.
 
It's a typo, I mean ToString(). Your second suggestion "?intA.ToString()"
wouldn't work. -- that's why I post the question here. Hopefully some "guru"
can answer the question.
 
It's a typo, I mean ToString(). Your second suggestion "?intA.ToString()"
wouldn't work. -- that's why I post the question here. Hopefully some "guru"
can answer the question.


Try putting a space between the ? and the intA.ToString()
 
Now I do see it, but it still doesn't work, actually I tried both with &
w/out space, the result is the same -- intA only is find, but intA.ToString()
complains. By the way, I'm using VS2003 , hopefully you are not talking 2005.

Thanks
 
Things seems more bizarr-- ex.ToString() works but intA.ToString() doesn't. I
also tried some functions from XmlNode class, again , some work some not.

It must be some reason for this! It really piss me off when I cannot not
figure it out, and seems no one else has this issue!
 
I have the issue too. I guess I've just assumed it wasn't supposed to
work. None of the other "typo corrections" people have posted work for
me either. I've also tried both windows "command" and "immediate". The
immediate window at least gives intellisense support, but still reports
the same error.

In my code I have:
int x = 3;
I have a breakpoint on the next line. During debug, I stop at that
breakpoint. Here is the output from my command/immediate window:
? x 3
? x.ToString()
error: 'x.ToString' does not exist
? x
3
? x.ToString()
error: 'x.ToString' does not exist
 
walter said:
Now I do see it, but it still doesn't work, actually I tried both with &
w/out space, the result is the same -- intA only is find, but
intA.ToString()
complains. By the way, I'm using VS2003 , hopefully you are not talking
2005.

Thanks

No, talking about VS2003 too. But you are right if fails randomly and not
only with ToString().
Here IntA works, inta fails, x fails, X works....

I would suggest you check this in Ladybug
http://lab.msdn.microsoft.com/productfeedback/default.aspx, and file a bug
if this is a not yet known bug (I guess it is).

Willy.
 
Back
Top