LINQ Set Operations in C#: Distinct, DistinctBy, Union, Intersect, and Except
Master LINQ set operations in C# including .NET 6 DistinctBy, UnionBy, IntersectBy, and ExceptBy with real-world before/after code comparisons.
C# and .NET by Nick Cosentino
Practical, in-depth content for software engineers and technical leaders. Learn C#, .NET, software architecture, AI-assisted development, and engineering leadership with guidance you can apply on your team today.

The latest articles on software engineering, architecture, AI, and career growth.
Master LINQ set operations in C# including .NET 6 DistinctBy, UnionBy, IntersectBy, and ExceptBy with real-world before/after code comparisons.
Master the proxy design pattern in C# with practical examples showing virtual proxies, protection proxies, caching proxies, and lazy loading implementations.
Master LINQ aggregation in C# with Count, Sum, MinBy, MaxBy, and custom Aggregate, plus why Count vs Any matters for real-world .NET performance.
Learn when to use flyweight pattern in C# with decision criteria, memory profiling examples, and guidance on choosing the right caching approach.
Go deeper into the core topics on Dev Leader, from .NET and AI to software engineering and career growth.