Converting any object to html (using Dump externally in Visual Studio)
Hello, for my project in Visual Studio I need something that would convert any object into html. Basically this is what Dump in Linqpad does brilliantly. Is there a way to use this functionality already? I'm open to any solution that would make use of existing packages and libraries. I tried to use Linqpad nuget for that and some other nuget packages as well but had no progress so far and therefore I decided to ask here - sorry I'm a little bit new.
Comments
Add a NuGet reference to LINQPad.Runtime and call Util.ToHtmlString or Util.CreateXhtmlWriter.
This is amazing, thank you!
One more question: does Util.ToHtmlString support collapsible tables? Like this for example
Yes, if you call Util.ToHtmlString with enableExpansions:true.
Is there a way to output the html with Show Graphs expanded?