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