Count? How about Not Any?
bool contained = !subset.Except(superset).Any();
More Related Contents:
- Convert DateTime to Date string “dd/mm/yyyy”
- Is there a good LINQ way to do a cartesian product?
- How to get index using LINQ? [duplicate]
- Create a list from two object lists with linq
- How can I conditionally apply a Linq operator?
- LINQ to SQL – Left Outer Join with multiple join conditions
- LINQ Contains Case Insensitive
- “A lambda expression with a statement body cannot be converted to an expression tree”
- Query an XDocument for elements by name at any depth
- Establish a link between two lists in linq to entities where clause
- What is the point of Lookup?
- Swap two items in List
- How do I get the index of the highest value in an array using LINQ?
- Exception using CopyToDataTable with “new {..}” LINQ query
- How to group by on 2 child entities and get total of both this child entities?
- Enumerating through an object’s properties (string) in C#
- Is the Linq Count() faster or slower than List.Count or Array.Length?
- Custom Method in LINQ to SQL query
- How to get first record in each group using Linq
- String.IsNullOrWhiteSpace in LINQ Expression
- How to Quickly Remove Items From a List
- How to use LINQ Distinct() with multiple fields
- LINQ: Select where object does not contain items from list
- How to search Hierarchical Data with Linq
- How/Can I use linq to xml to query huge xml files with reasonable memory consumption?
- AutoMapper for Func’s between selector types
- Sorting a List
- linq: order by random
- Select distinct rows from datatable in Linq
- Is Injection Possible through Dynamic LINQ?