From the course: LINQPad Essential Training

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Understand the Dump helper

Understand the Dump helper - LINQ Tutorial

From the course: LINQPad Essential Training

Understand the Dump helper

- [Instructor] The dump extension method. I put information to the Results panel. The format of the output changes based on what you are dumping. In this first example, we're up putting simple string data so you get simple string output like this. There is the results. A number of strings. I'm dumping a string literal, I'm dumping a Boolean expression, here I'm dumping the double literal. On line nine, I'm calling two string and formatting that as currency. And then finally, I'm calling date time today and dumping that out so I'm seeing the date and time value here. And the next example, we'll see the output in a single column table. So this first example works with the culture info, current culture and gets the date, time format, day names. So what we'll see here is a single column table. On the header we see that this is an array of strings and there's the values. Next I'm going to call GetType on this double…

Contents