C# debugging: [DebuggerDisplay] or ToString()?

Using [DebuggerDisplay] is meant only for the debugger. Overriding ToString() has the “side effect” of changing the display at runtime. This may or may not be a good thing. Often, you want more info during debugging than your standard ToString() output, in which case you’d use both. For example, in your case, the “ToString” implementation … Read more