I\'d like to get ToString() to display for a class under my control in debug mode.
It\'d be nice if this was the first thing to show up when you hover over a varia
The output of ToString
should be the default you see when debugging.
It can be overridden using the DebuggerDisplay
Attribute (see MSDN).
I prefer overriding the ToString
method because its easier and more versatile because it helps when writing to log files as well.
What output do you see? If you get the type name you see the default ToString
.