Working with sets of data is something we developers do almost every day. Even something as simple as an array of integers is a set, and there are a lot of things we can do with that set. Usually we iterate over sets using 'for' or 'foreach'. In this presentation, we will be discussing how to iterate over sets without typing 'for' or 'foreach'.
We will start by looking at some normal example loops, and then we will slowly bring LINQ into the code, and see how that code improves with the usage of LINQ. We will end up reviewing at least one overload of every LINQ method available, and many examples will be shown.
If you have never used LINQ before, you are in for a treat! LINQ allows us to manipulate sets of data with minimal code, while benefiting from the fact that the methods in the LINQ namespace have been tested countless times by other developers. No need to reinvent the wheel!
Please note the content in this presentation assumes the audience is already familiar with lambdas and IEnumerable, which was covered in previous TRINUG presentations.
For experienced LINQ users, please note the presentation will be constrained to the following:
We will only be using LINQ-to-objects; Entity Framework will not be covered.
We will only be covering the method syntax; query syntax will not be covered.
To save time, some overloads to methods will be skipped.
Presenter: Derick Linkous