score:1
Accepted answer
var questions = from q in this.questions
where q.categories.any(c => categories.contains(c))
select q;
Source: stackoverflow.com
Related Query
- How to execute a linq query for each item in a list , use it in the where clause and return a collection from the result of each query?
- LINQ for CRM how to use C# list in where clause
- List of objects where the object contains an array - how to use LINQ to search through all objects for a value in that array
- Linq how to query a list of items for a combined list of a child collection based on a property of the parent item
- How do I add a where clause to a field that is not part of the return set for LINQ query
- how to use where clause in join usinq linq for the following T-SQL query?
- How to get linq `ForEach` statement to return data on the method call being made for each list object?
- How to call a method in the where clause of a LINQ query on a IQueryable object
- Linq - How to apply a where clause on the maximum element of a list
- How to work around the fact that Linq to SQL is using separate SQL DELETE statements for each item in DeleteAllOnSubmit
- how to execute custom function for each item later using linq deferred execution?
- How can I check for null values in this linq query where clause
- Is there a Linq operation to retrieve specific items from a list of items where the item has a property value for a property which should be unique?
- How can I use a List<> as the condition for my where clause with Linq?
- How can I keep the the logic to translate a ViewModel's values to a Where clause to apply to a linq query out of My Controller?
- How to use the vb equivalent of ++ for an index property in a Linq query projecting a new type
- How to AND predicates in the WHERE clause in a LINQ to RavenDB query
- Use LINQ to get only the most recent JOINed item for each element
- How do I use LINQ to return the first item from each set of Grouped data (In VB.Net)
- How to use LINQ to query for specific object in an array in a list of objects?
- How do I use the having clause on an aggregate in a complex group by and join query in LINQ
- How to query and calculate dates in the where clause of a LINQ statement?
- How to use "in" where clause in LINQ where the string set will be supplied by a list?
- How to safely use the .substring method in a linq where clause
- LINQ to Object - How to implement WHERE clause `If at least one of the elements is` for sub-group
- How to write a query in order to achieve the orderby descending clause for an uninitialised generic collections such as List of integers in c#?
- How to use a LINQ where clause on a list of Func delegates
- Create new list of objects for each of the item in another object list using Linq
- How can I create an Lambda Expression for Linq in the Where clause for two tables after the Join?
- How do I iterate through a string.Split() array, joining LINQ query results for each item together?
More Query from same tag
- How to debug an empty LINQ result query?
- Counting cells in a column with EPPlus
- lambda expression issue
- Relational division in LINQ?
- Entity Framework DBContext global caching?
- Cleanest syntax to delete a record in linqtosql
- Breaking a loop using TakeWhile when a count or length condition is meet
- Refactoring LINQ to Query Expressions
- unsigned int mysql in C#
- What are the major differences between Data Access Application Block, NHibernate, ADO.NET Entity Framework and LINQ to SQL?
- Linq join 3 list <T>
- In LINQ query, how to order by included table column using .Include()?
- how to add/insert conditional node into XML using linq to XML
- Order collection on single element
- Sort list in C# with LINQ
- Is there a more efficient way to create a Grouped list
- hiearchical data, catel, and MVVM
- how can join xml
- Insert to 2 tables in single query using LINQ
- How to fill dataset from LINQ
- How to Generate Combinations of Elements of a List<T> in .NET 4.0
- How to check null collection?
- Xamarin API VK List forming
- C# Linq Class with Distinct List
- How to achieve LINQ SUM with multiple columns with no group by
- Creating SQL Server CE DataContext with Tables at runtime
- cannot convert mysql query to linq statement
- A LINQ with XML question
- Invalid cast exception: trying to join two tables using linq-sql
- LINQ SQL Method not Filling Highcharts