January 2011
Intermediate to advanced
1648 pages
70h 30m
English
So far, we’ve always been talking about sequences as the sources of data which LINQ operates on. Even though the use of sequences implies an ordering of elements, it doesn’t preclude certain set theoretical operations, such as intersection and union, to be defined. Besides those, some operations that have an inherent affinity to sequences exist.
IntersectThe intersection of two sequences consists of all the elements that exist in both of the sequences, where an existence check is based on an equality check:

UnionTo merge two sequences without retaining duplicates, the Union operator can be used. Just ...
Read now
Unlock full access