C# Immediate Window Nightmare

  • Thread starter Thread starter raqib.rafique
  • Start date Start date
R

raqib.rafique

The immediate window in Vs.NET is giving me problems when i use it with
C#. Simple example is
I have the following line of code in a function
String MyString = "abc.doc";

Then I put a breakpoint on it, when i debug the application and it goes
into that break, I goto immediate window and type
?MyString
it shows abc.doc
but when I want to test for something else like
?MyString.ToUpper() or ?MyString.ToUpper()
it gives error
error: managed EE does not understand expression's syntax

I have tried this in VB.NET and there is nooooooo problem at all. But
it is not working in csharp. Please let me know how to deal with it. I
need to use immediate window to evaluate certain expressions/methods at
run time.

Thanks in advance.

Raqib ([email protected])
 
I just type what I want (didn't know of ?, > and so on)

MyString
MyString.ToUpper()
MyString[0]

return the string, the upper cased string and the the first character of the
string as int and char.

Andrew
 
Back
Top