LINQPad: Anyway, so that the Dump () results are initially collapsed?

Could not find it anywhere (google or stackoverflow).

Is there a way to force the output of Dump () automatically?

Update:

Additional information to draw more attention to the issue.
As mentioned below, Collapsing can be performed after output using a short keystroke (Alt + 1, Alt + 2, Alt + 3). And the rendering depth can be determined by passing the int depth parameter, but this does not allow to expand the results.

Is there a way to change CSS formatting? I am not so fluent in CSS, so this might be a solution.

Why do I need it:

I want to conclude β€œcleaner” and dive when interest arises. I run the query again and do not need all the conclusions all the time, but still using my human abilities to detect changes, and not encode the detection.

Update: November 2013

As Joe (the author himself!) Notes in the comments, LINQPad no longer has the described limitation. Now you can specify 0 and collapse the information after it is displayed.

+6
source share
1 answer

No, although you can call the Dump with a number to make it display that nesting depth:

 .Dump(0) 

You can also use formatting combinations (Alt + 1, Alt + 2, Alt + 3) to minimize the entire screen to one, two, or three levels.

Another option is dumping into grids. Call dump (true) or use the toolbar button. Grids show only one level, and subsequent levels are displayed on request with hyperlinks.

+19
source

Source: https://habr.com/ru/post/913832/


All Articles