visual studio 2010

Posted on 2014-08-29
Last Modified: 2014-09-11
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";
Question by:ITsolutionWizard
    LVL 74

    Expert Comment

    by:käµfm³d 👽
    View what result? What code are you debugging? A class by itself can't be debugged. You have to be executing some code first.

    Author Comment

    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.
    LVL 74

    Expert Comment

    by:käµfm³d 👽
    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.

    LVL 15

    Accepted Solution

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

    This appears in the output window

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now