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.
Repeat table headers - LINQ Tutorial
From the course: LINQPad Essential Training
Repeat table headers
- [Instructor] This is one of my favorite demos I like to show when I'm showing the power of Link, which is how you can work with any method that returns a array or a list. And so what we have here is the Process class has a method called GetProcesses which returns an array of all the running processes on this computer. What I'm doing on the next line is declaring a variable in the Link Query called ThreadCount that has the number of threads in that process. And then I order them by thread count descending and then I select that ProcessName and ThreadCount. And you can see here, when I run the query, I end up with 262 items and I can see that these are the items, these are the processes, I should say, that have the most threads, at the top of this list. Now, the problem with any table, when you scroll down the table you start losing track of what the name of the column is and you have to scroll back to the top. So…
Contents
-
-
-
-
-
(Locked)
WriteLine vs. the Dump extension method1m 43s
-
(Locked)
Understand the Dump helper2m 54s
-
(Locked)
Create descriptive output with the Dump header1m 19s
-
(Locked)
Run a selected area of code1m 36s
-
(Locked)
Exclude and include columns1m 39s
-
(Locked)
Repeat table headers1m 19s
-
(Locked)
Change output to grid control1m 17s
-
(Locked)
-
-
-
-
-
-
-