Top "Linq" questions

Language Integrated Query (LINQ) is a Microsoft .NET Framework component that adds native data querying capabilities to .NET languages.

Using IQueryable with Linq

What is the use of IQueryable in the context of LINQ? Is it used for developing extension methods or any …

c# linq iqueryable
How to use LINQ to select object with minimum or maximum property value

I have a Person object with a Nullable DateOfBirth property. Is there a way to use LINQ to query a …

c# .net linq
How to get first object out from List<Object> using Linq

I have below code in c# 4.0. //Dictionary object with Key as string and Value as List of Component type object …

c# .net list linq c#-4.0
LINQ Aggregate algorithm explained

This might sound lame, but I have not been able to find a really good explanation of Aggregate. Good means …

c# .net linq aggregate
Using .Select and .Where in a single LINQ statement

I need to gather Distinct Id's from a particular table using LINQ. The catch is I also need a WHERE …

c# linq unique distinct
printing all contents of array in C#

I am trying to print out the contents of an array after invoking some methods which alter it, in Java …

c# .net arrays linq
Entity Framework. Delete all rows in table

How I can quickly remove all rows in table using Entity Framework? I am currently using: var rows = from o …

c# sql linq entity-framework
Query an XDocument for elements by name at any depth

I have an XDocument object. I want to query for elements with a particular name at any depth using LINQ. …

c# .net xml linq linq-to-xml
Check if two lists are equal

I have a class as follows: public class Tag { public Int32 Id { get; set; } public String Name { get; set; } } And …

c# linq
LINQ: Select an object and change some properties without creating a new object

I want to change some properties of a LINQ query result object without creating a new object and manually setting …

c# linq