From the course: .NET Essentials: Working with LINQ

Unlock this course with a free trial

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

The Enumerable class

The Enumerable class

- [Instructor] The next principle we want to look at is, what do you do when you have a pool of information? So we've seen that a pool can be called a sequence, or a group, or it's something that implements IEnumerable of T, but the key thing for us is that all these query operators are implemented as extension methods in a class called Enumerable. At least that's true for linked objects if you're working with linked to SQL or linked to Entity Framework, then they're implemented in a classical Queryable. So we're looking at the ones in the Enumerable class, so I've got another query. Again, don't worry too much about the syntax, right? When I run this, it returns a list of 58 methods. These are all methods that we can use to query our data. Let's see if we see any familiar ones in this list. Here's one called Group By, here's one called Select. There's OrderBy. I see one called Sum and there at the bottom there's Where.…

Contents