Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / C#3.0

Filtering records from List similar to Sql IN Operator using LINQ

4.67/5 (2 votes)
27 Feb 2012CPOL 8.8K  
An alternate solution.

Couldn't you just say something like this?


C#
allReleaseAttachments.Where(s => allExtensions.Contains(s.Path.SubString(extensionStartIndex))?

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)