Click here to Skip to main content
11,934,809 members (49,013 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


1 bookmarked

Filtering records from List similar to Sql IN Operator using LINQ

, 27 Feb 2012 CPOL
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
No Biography provided

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.

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