Query and transform collections with C# LINQ
8 steps · about 2 h · Beginner
- Walk through writing LINQ queries (article, Microsoft Learn, 15 min)
Orients you before the operator details.
- Write your first queries (article, Microsoft Learn, 20 min)
Hands-on filtering and ordering.
- Browse the standard query operators (article, Microsoft Learn, 20 min)
Maps tasks like Select and Where to the operator you need.
- Take, skip and page results (article, Microsoft Learn, 15 min)
Shows Take, Skip and Chunk for paging.
- Combine sets of values (article, Microsoft Learn, 15 min)
Covers Distinct, Union, Intersect and Except.
- Convert results to lists and dictionaries (article, Microsoft Learn, 10 min)
Covers ToList, ToDictionary and AsEnumerable.
- Test with Any and All (article, Microsoft Learn, 10 min)
Answers yes/no questions about a sequence.
- See deferred execution at work (article, Microsoft Learn, 15 min)
Explains why queries run when enumerated, a classic LINQ trap.