visual studio 2010

I want to use visual studio 2010 Immediate window to view the result. What do i need to do?


namespace something
{
public class DLPayment
    {
      public string testme()
            {
            return "hello";
            }
    }
}
LVL 1
ITsolutionWizardAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

käµfm³d 👽Commented:
View what result? What code are you debugging? A class by itself can't be debugged. You have to be executing some code first.
0
ITsolutionWizardAuthor Commented:
send me some codes  I can use with immediate window. I want to learn how it works.
My goal is to get quick result to test some methods inside of the .cs file.
0
käµfm³d 👽Commented:
The Immediate Window lets you either execute or inspect code that is in scope. You can execute code by simply typing it into the window. For example, in the first line I execute GetGreeting. The output, if any, is output just below it. If you want to inspect the value of some variable, or even some function call, then you can prefix the code with a question mark, as I did in line 3. The output of the a_private_variable is output just after.


Screenshot
0
ChloesDadCommented:
If you want to write text out for debugging purposes then use console.writeline("sometext")

This appears in the output window
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.