I have a complex class, (MyClass), that has a function called ToString(), the function returns a string representation of the string.
I would like the visual studio visualiser to use that function to display the variable
This is my visualizer,
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="MyClass">
<DisplayString>...</DisplayString>
</Type>
</AutoVisualizer>
If I use
...
<DisplayString>{ToString}</DisplayString>
...
The address of the function is returned, is it possible to display the result of the function?
If not, what would be the best way of displaying a string representation of the class?