65.9K
CodeProject is changing. Read more.
Home

Filtering records from List similar to Sql IN Operator using LINQ

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.67/5 (2 votes)

Feb 27, 2012

CPOL
viewsIcon

8780

An alternate solution.

Couldn't you just say something like this?

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