You are previewing LINQ Unleashed for C#.

LINQ Unleashed for C#

Cover of LINQ Unleashed for C# by Paul Kimmel Published by Sams
O'Reilly logo

Chapter 9Performing Set Operations

In This Chapter

Image Finding Distinct Elements

Image Defining Exclusive Sets with Intersect and Except

Image Creating Composite Resultsets with Union

“Ah, well, then I suppose I shall have to die beyond my means.”

—Oscar Wilde

Set operations are like knights in the game chess. Set operations—like knights—help you move in imaginative ways. The set operations are implemented as extension methods. Distinct selects a distinct element ...

The best content for your career. Discover unlimited learning on demand for around $1/day.