From the course: LINQPad Essential Training

Unlock this course with a free trial

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

Highlight output

Highlight output

- [Instructor] There is a way to focus attention on parts of the result. Use the highlight and highlight if methods, we'll look at highlight if, so, what I have right now when I run this query is, I'm seeing 140 colors and I'm using some of the columns, color name, hex value, and red, green, and blue percent. And what I'd like to do is highlight all of the colors that are over 60% blue. Now, one way I could do that is I could write a where clause in my query. So up here in my query, I can add a where clause like this, where blue percent is greater than 0.6 and this works. I'm now seeing 75 results. And these are all the items that have the high blue percent, but I've lost the ability to compare the rows with the other color values. So that's where we can use the highlight tools. Let me remove this where clause and rerun the query. We're back to 140 items. And then down here after I do colors dot dump, I'll declare a…

Contents