Ben Walker
  • Blog
  • Blog

Formatting the output of LINQPad's Dump container

16/9/2017

0 Comments

 
LINQPad’s Dump Containers can be used as a way of outputting some data to a static place within the output pane. A good example of this would be to display a timer or counter on the screen whilst a particular action is taking place.
A simple example of a Dump Container is as shown below where the content of the container is modified within a For loop.
Picture
Like LINQPad’s progress bar, Dump Containers can be really useful to indicate the progress of a running script. What makes them even more useful is that you can format the content of a Dump Container, which can be used to bring the user’s attention to something, such as an exception, or the completion of the script. You can easily amend the style of the container using css styling.
Here’s a trivial example of how the content and the style of the Dump Container can be changed on the fly:
Picture
You can download the second script from instant share here.
0 Comments



Leave a Reply.

    Archives

    July 2021
    June 2021
    May 2020
    March 2020
    December 2019
    October 2019
    June 2018
    February 2018
    October 2017
    September 2017
    August 2017
    May 2017
    April 2017

    Categories

    All
    Dynamics 365
    Dynamics CRM
    FakeXrmEasy
    LINQPad
    Testing

    RSS Feed

    Author

    Some stuff about me!

Proudly powered by Weebly