The methods Distinct
, Union
, Intersect
, and Except
provide set operations to compare multiple sequences.
This sample uses Distinct
to remove duplicate elements in a sequence of factors of 300.
This sample uses Distinct
to find the unique Category names.
This sample uses Union
to create one sequence that contains the unique values from both arrays.
This sample uses Union
to create one sequence that contains the unique first letter from both product and customer names. It shows how you can combine the results of two different queries that produce the same element type.
Next: Intersect and except set operations » Previous: Nested groupings with a custom comparer «