Is it possible to simulate Dump(description, depth) with Util.CreateXhtmlWriter() ?
Options
I am using Util.CreateXhtmlWriter(true) to generate html which is displayed in a webbrowser in a winforms application.
This allows me to simulate the effects of Dump(), but is it possible to set the initial depth and also a description, ie to get the same output as Dump(description, depth) when run from inside Linqpad?
This allows me to simulate the effects of Dump(), but is it possible to set the initial depth and also a description, ie to get the same output as Dump(description, depth) when run from inside Linqpad?
Comments
-
You can specify the maximum depth when calling CreateXhtmlWriter, but there's no way to create headings as you go. In terms of a workaround, you could experiment with Util.RawHtml.
-
Thanks.
-
Here's an example of how to dump to file
https://stackoverflow.com/questions/6032908/is-there-a-library-that-provides-a-formatted-dump-function-like-linqpad