Contains
The "contains" operator/method is used to determine if an entity collection contains an element with a particular property.
Intersect
The SQL intersect operator returns rows that are common between two tables without returning duplicate records.
Others
Example |
---|
Edit just checked the performance of intersect it is slower than using .all with contains from question Select products that has all tags |
I d say the intersect method see answer by dasblinkenlight + any must work better than contains + any from question Check whether a List<string> contains an element in another List<string> using LINQ |
Given two ranges a a b and c c d do they intersect is one greater than the other or does one contains the other from question In what contexts do programming languages make real use of an Infinity value? |