C# Immediate Window Nightmare

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])
 
A

amaca

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
 

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