|
-
November 7th, 2008, 03:03 PM
#1
Can Linq be used to query a Generic List<T>?
I have a class which is basically a List<T>, where the objects in the list are instances of another class of mine, mostly strings but also a few DateTimes and long variables.
Can I run Linq queries against this generic list, and have it search through the objects in the list?
Thanks.
Running .Net 3.5SP1, VS2008 Express
-
November 7th, 2008, 04:18 PM
#2
Re: Can Linq be used to query a Generic List<T>?
LINQ can be used with anything that supports IEnumerable.
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|