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 31 of 77Understanding C# LINQ Join with Examples
c# linq join: Learn how to use LINQ Join to combine collections, including inner, left, and multi-key joins, with C# examples and common pitfalls.
C# LINQ GroupBy: Grouping Data Correctly
Practical C# LINQ GroupBy examples for single and composite keys, deferred execution, and performance trade-offs.
How to Use LINQ DistinctBy in C#
Learn how to use LINQ DistinctBy in C# to remove duplicate objects based on a specific property, with practical examples, custom comparers, and performance tradeoffs.
Using C# LINQ Distinct Effectively
c# linq distinct: Learn how C# LINQ Distinct works, when it uses default equality, and how to customize it with a comparer for reference types and complex objects.
Using Min and Max in C# LINQ
Learn how to use LINQ Min and Max in C#: basic syntax, selector projections, empty sequence exceptions, nullable handling, and performance tradeoffs.
C# LINQ Average: Syntax and Edge Cases
Learn how to use LINQ's Average method in C#: syntax, numeric type behavior, empty sequence handling, selector projections, and performance considerations.
C# LINQ Sum: Syntax, Edge Cases, and Performance
Learn how to use the C# LINQ Sum method with code examples, including selector overloads, empty and nullable sequences, and when to choose Aggregate.
C# LINQ LongCount: When to Use It
c# linq longcount: Learn when and how to use LongCount in C# LINQ to avoid overflow when counting large collections, and how it differs from Count.
C# LINQ Count: Syntax, Predicates, and Performance
c# linq count: Learn how to use the LINQ Count method in C#: basic syntax, predicate overloads, LongCount, and performance considerations for large collections.
C# LINQ Contains: Usage, Performance, and Pitfalls
Understand how C# LINQ Contains determines membership, when to use a custom equality comparer, and how performance differs between List and HashSet.