Click here to Skip to main content
13,351,971 members (87,469 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


1 bookmarked
Posted 27 Feb 2012

Filtering records from List similar to Sql IN Operator using LINQ

, 27 Feb 2012
Rate this:
Please Sign up or sign in to vote.
An alternate solution.

Couldn't you just say something like this?

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


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


About the Author

Greg Sipes
United States United States
This member doesn't quite have enough reputation to be able to display their biography and homepage.

You may also be interested in...


Comments and Discussions

GeneralReason for my vote of 2 seen this before. Pin
Dean Oliver27-Feb-12 7:07
memberDean Oliver27-Feb-12 7:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.180111.1 | Last Updated 27 Feb 2012
Article Copyright 2012 by Greg Sipes
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid