score:3
Accepted answer
for csv splitting i advise you to use any csv parser, not simply use string.split
method.
string[] input = { "1,2,4,5", "1,4,3,6", "2,3,4,5", "1,4" };
var result = input.where(l => l.split(',').any(s => new[] { "2", "3" }.contains(s)));
Source: stackoverflow.com
Related Query
- how to search between comma separated field in linq
- How to search between two dates in LINQ to Entity?
- How to find a match with 2 comma separated strings with LINQ
- How to Select the Token and Index from a Comma Separated String in Linq
- How to check comma separated values stored in data base column having the given value using linq in c#
- EF Core how to use linq to match field stores as string but contains items separated by a delimiter
- Using LINQ to search comma separated string
- How to extract items at specified locations from list of comma separated strings using LINQ
- how to join two tables with comma separated values column in c# linq asp.net mvc
- Filter with Linq comma separated field
- How to pass comma separated values to LINQ query without for loop
- How can I use Linq to find items with matching words from a comma separated string?
- How to do a Linq on a comma separated string
- How i can split comma separated string in a group using LINQ
- Linq search from comma separated string to double
- How to break link between source collection and LINQ result
- Linq to sql between List and Comma separated string
- C# linq how to search data between two date
- how to search Year between in Dynamic Linq
- How to Join with a column having Comma Separated Values in Linq
- How to perform Join between multiple tables in LINQ lambda
- Using Linq to return a Comma separated string
- How to convert IEnumerable<string> to one comma separated string?
- How do you add an index field to Linq results
- How are people unit testing code that uses Linq to SQL
- How to OrderBy an integer in a string field in a Linq query
- How to search Hierarchical Data with Linq
- How to add field not mapped to table in Linq to Sql
- How do you left join in Linq if there is more than one field in the join?
- How to search in 2D array by LINQ ?[version2]
More Query from same tag
- How to get following output in Linq
- How to get flattened list from dictionary key query where values are lists?
- prevent child tables from being populated in a linq query
- Left join with linq query does not work with null columns in datatable
- Convert Null value retrieving from database into decimal data type
- Linq get all objects that implement interface
- Get Children common to All Parents
- Linq. How to query list within list?
- Is there a way to cast in the `Where` part of an Entity Framework query?
- How to sort a list of objects by another list
- Group by list of objects as dictionary of int, List of bjects
- Wildcard search in LINQ to SQL query not executing
- What would be the Linq code for this grouping using VB.NET 2008?
- GroupBy() not grouping correctly on List<T> property
- combining two LINQ expressions into one
- Compare 2 List<Dictionary<string,object>> in c#
- How to remove duplicate combinations from a List<string> using LINQ
- Querying a Single Column with LINQ
- Calculating percentile using LINQ in C#
- Retrieve Record Based on TimeSpan with LINQ
- Powershell Equivalent of Linq Statement
- Retrieve single record to model with EF Linq, does it need to loop to populate?
- Can I use GetDataRow() on a view if the view's datasource is IQueryable?
- More than one record is updated EF-Linq C#
- convert string in an array of objects
- C# WinForms: populating datagridview with datasource from two different tables
- How to Select a grandchild element of a element using xDocument and Linq
- Transform Sql to EF Core Linq query
- Linq to RSS feed?
- Implementing Dynamic LINQ querying in MVC5/EF Application?