Language Integrated Query (LINQ) is a Microsoft .NET Framework component that adds native data querying capabilities to .NET languages. Please consider using more detailed tags when appropriate, for example [linq-to-sql], [linq-to-entities] / [entity-framework], or [plinq]
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
Let's suppose if we have a class like: class Person { internal int PersonID; internal string c
What is the difference between returning IQueryable<T> vs. IEnumerable<T>, when should one be pref