What is the difference between IQueryable<T> and IEnumerable<T>? See also What's the differe
Using LINQ on collections, what is the difference between the following lines of code? if(!coll.Any(i => i
I'm sure this will be a relatively simple one. I have a LINQ query that I want to order by the most rece
I have a Person object with a Nullable DateOfBirth property. Is there a way to use LINQ to query a list of Pe
Consider the IEnumerable extension methods SingleOrDefault() and FirstOrDefault() MSDN documents that SingleO
Is there a better way to get the Property name when passed in via a lambda expression? Here is what i currentl
I often run into the case where I want to eval a query right where I declare it. This is usually because I nee
How to perform left outer join in C# LINQ to objects without using join-on-equals-into clauses? Is there any w
Is there any easy LINQ expression to concatenate my entire List<string> collection items to a single str
I would assume there's a simple LINQ query to do this, I'm just not exactly sure how. Given this pi
in the System.Linq namespace, we can now extend our IEnumerable's to have the Any() and Count() extension
I found an example in the VS2008 Examples for Dynamic LINQ that allows you to use a sql-like string (e.g. Orde
I have some doubts over how Enumerators work, and LINQ. Consider these two simple selects: List<Animal>
I'd like to do the equivalent of the following in LINQ, but I can't figure out how: IEnumerable<
I've searched around and haven't really found a clear answer as to when you'd want to use .Firs