Skip to content
Search lessons, topics, tests…
Esc

    ↑ ↓ moveEnter openEsc close
    LINQ: back to the track

    Guided course · LINQ

    LINQ in C#: How It Works and Everyday Use Cases

    • Learn which LINQ operator fits each everyday job, and how it behaves.
    • How a query runs: deferred and immediate execution, LINQ to Objects and EF Core.
    • Filtering, shaping, sorting and picking one item safely.
    • Totals, grouping, flattening, joins (with .NET 10's LeftJoin and RightJoin) and comparing lists.
    • Paging and batching, the right result collection, and LINQ over text, dates and log files.
    Intermediate6 modules · 14 lessons · 3 h 12 min · 14 practice tests · 2 free

    Module 1 · How LINQ Works

    2 lessons · 27 min
    1. 01LINQ in C#: What It Is and How a Query RunsFree, 1 practice test13 min
    2. 02LINQ Interview Questions: Which Operator to Use and WhyFree, 1 practice test14 min

    Module 2 · Filter, Shape, Sort and Pick

    3 lessons · 41 min
    1. 03Filtering and Shaping Data with Where and Select: DTOs, Anonymous Types and Search Filters (included with Full Access), 1 practice test15 min
    2. 04Sorting by Several Keys with OrderBy and ThenBy: Custom Orders, Text and Nulls Last (included with Full Access), 1 practice test13 min
    3. 05First, Single, Last and ElementAt: Picking One Item Safely, plus Any, All and Contains (included with Full Access), 1 practice test13 min

    Module 3 · Totals and Groups

    2 lessons · 26 min
    1. 06Totals and Extremes: Count, Sum, Average, Min, Max, MinBy, MaxBy and Aggregate (included with Full Access), 1 practice test13 min
    2. 07Grouping and Summarising Data with GroupBy, CountBy and AggregateBy (included with Full Access), 1 practice test13 min

    Module 4 · Flatten, Join and Compare

    3 lessons · 45 min
    1. 08Flattening Nested Data with SelectMany: Orders to Lines, Tags and Pairs (included with Full Access), 1 practice test14 min
    2. 09Joining In-Memory Data: Join, GroupJoin, LeftJoin, RightJoin and FullJoin (included with Full Access), 1 practice test16 min
    3. 10Removing Duplicates and Comparing Lists: Distinct, DistinctBy, Union, Intersect and Except (included with Full Access), 1 practice test15 min

    Module 5 · Pages, Results and New Sequences

    3 lessons · 39 min
    1. 11Paging and Batching: Skip, Take, TakeLast, TakeWhile and Chunk (included with Full Access), 1 practice test14 min
    2. 12Converting Results and Building Lookups: ToList, ToArray, ToDictionary, ToLookup and ToHashSet (included with Full Access), 1 practice test12 min
    3. 13Generating and Combining Sequences: Range, Repeat, Sequence, Zip, Concat, Append and Index (included with Full Access), 1 practice test13 min

    Module 6 · Real Data: Text, Dates and Files

    1 lesson · 14 min
    1. 14LINQ over Strings, Dates and Files: Words, Characters, Time Buckets and Log Lines (included with Full Access), 1 practice test14 min

    TechInterviewNotes Editorial Team ·