AI Features
Log In
0% completed
All Lessons
Free Lessons (2)
Getting Started
Introduction
What Is LINQ?
LINQ and Declarative Programming
LINQ Method: Where
LINQ and IEnumerable Type
What Are Extension Methods?
Quiz on Extension Methods
What Are Lambda Expressions?
Quiz on Lambda Expressions
How to Use the Where Method
Exercise: Find Your Favorite Movies
Exercise: Rewrite Our First Example Using Lambda Expressions
LINQ and Immutability
LINQ and Laziness
Common LINQ Methods
The Select Method
Any and All Methods
Quiz on LINQ Methods
Exercise: Implement Your Own Any Method
GroupBy and OrderBy Methods
First and FirstOrDefault Methods
Take and Skip Methods
Exercise: Write a Pagination Method
Exercise: Refactor From Loops to LINQ
Sum, Min, and Max Methods
SelectMany Method
Aggregate Method
The Distinct Method
Intersect, Union, and Except Methods
Exercise: Implement the Exactly Method
Exercise: Use LINQ Methods
Exercise: Sort by Occurrences
Syntax & Pitfalls
Query-like Syntax
Common Mistakes and What to Do
Exercise: Remove Mistakes
Refactor with LINQ
Replace Comparisons with Any
Replace a Set of Choices with FirstOrDefault
Validate Objects with All
Exercise: Add a Recommended Movie
What's New in LINQ?
LINQ and .NET 6
Chunk Method
DistinctBy Method
Take Method with Ranges
XOrDefault Methods with Defaults
Quiz on New LINQ Methods
Wrap-up!
Conclusion
Home
Courses
Getting Started with LINQ in C#
Exercise: Find Your Favorite Movies
Play around with our catalog of movies.
We'll cover the following...
Write your first LINQ query
Write your first LINQ query
Now, it’s your turn!
Add
...