C# guides
Every published C# guide, newest first, with practical examples you can copy into your own project.
3,965 guides across 14 topics
Topics
Popular C# guides
Most readLatest C# guides
Page 30 of 77C# LINQ Chunk: Split Sequences into Batches
Learn how to use the LINQ Chunk method in C# to split sequences into fixed-size batches, with practical examples and performance considerations.
C# LINQ TakeWhile: Stop at First Failure
c# linq takewhile: Learn how C# LINQ TakeWhile returns elements until a condition fails, its difference from Where, and when to use it for early exit.
C# LINQ SkipWhile: Syntax and Behavior
C# LINQ SkipWhile skips leading elements until a predicate first returns false, then returns the rest. Learn its syntax, indexed overload, and common pitfalls.
C# LINQ Take: Syntax, Behavior, and Use Cases
Learn how to use the LINQ Take method in C#: syntax, deferred execution, edge cases, performance implications, and practical pagination examples.
C# LINQ Skip: Usage, Behavior, and Edge Cases
Learn how the LINQ Skip method works in C#, including deferred execution, pagination with Take, and edge cases like skipping past the end of a sequence.
Using LINQ Except in C# to Find Set Differences
c# linq except: Learn how LINQ Except works in C#: default equality, custom comparers, duplicate handling, order preservation, and performance tradeoffs.
C# LINQ Intersect: Set Intersection in Practice
Learn how to use C# LINQ Intersect to find common elements between collections, including custom equality comparers, performance behavior, and multiset alternatives.
C# LINQ Union: Merging Sequences Without Duplicates
Learn how C# LINQ Union merges two sequences without duplicates, how it differs from Concat, and how to control equality for custom types.
C# LINQ Concat: Syntax and Use Cases
C# LINQ Concat: Learn how to merge two sequences, understand lazy evaluation, and see practical examples with arrays and lists.
C# LINQ GroupJoin Syntax and Use Cases
c# linq groupjoin: Understand how C# LINQ GroupJoin pairs parent and child collections, produces nested child sequences, and differs from a standard join.