I am looking for a good concrete example where it is clearly desirable to override ToString() with something, but to use a [DebuggerDisplay(...)] custom attribute to display something else in the debugger?
I am looking for a good concrete example where it is clearly desirable to
Share
Say, for example, a Node object for a binary tree.
The
ToString()would merely want to display the payload for that node, while theDebuggerDisplaywould probably also show which nodes it was pointing to.