Click here to Skip to main content
Click here to Skip to main content
Alternative Tip/Trick

Tagged as

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))?

License

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

Share

About the Author

Greg Sipes

United States United States
No Biography provided

Comments and Discussions

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

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web01 | 2.8.141223.1 | Last Updated 27 Feb 2012
Article Copyright 2012 by Greg Sipes
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid