add AdvancedDebuggerDisplayExtensions#2
Conversation
|
As it is now this is far from complete as it is lacking support for several kinds of expressions supported by
... and likely many more The status quo is simply meant to present the concept in order to decide whether we actually want that. |
|
Unfortunately I could not get this to work at all in Visual Studio 2017, it would always fail to find the On top of this, the amount of Todos is already considerable, and it's unlikely that many of the features required to fully support all sorts of C# expressions would find much use anyways. I believe the solution here is to just take the hit and explicitly parameterize the |
Problem
The DebuggerDisplayAttribute does not recursively evaluate the DebuggerDisplayAttribute of types used in the provided debugger display expression.
Sadly the DebuggerDisplayAttribute class is sealed, so inheriting this class and defining a custom attribute for that sake is not an option.
Solution
Provide an extension method for all types that evaluates the debugger display of an object.