Immediate window: printing objects

Last post 05-08-2008 7:32 PM by tmpuzer. 0 replies.

Sort Posts:

  • Immediate window: printing objects

    05-08-2008, 7:32 PM
    • Loading...
    • tmpuzer
    • Joined on 03-07-2008, 12:45 PM
    • Posts 152

    Using C# with Visual Studio 2005.

    I noticed in the Immediate Window if I type a variable name that is an object and hit enter, the ToString() representation is displayed followed by a list of all the private members and public properties.  Where does this information come from?  Is this display controlled by some method that is potentially overrideable?

    For example, I know in python there are actually two methods to control the display of objects __str__ and __repr__, is this a similar situation in that there is some other method besides ToString()?

    Or is this visual studio using introspection or something?


Page 1 of 1 (1 items)