Language-Integrated Query (LINQ) Tutorials

LINQ is the name for a set of technologies based on the integration of query capabilities directly into the C# language.

So far, we have published 27 LINQ tutorials and articles, which have been read by over 3101838 (Three Million One Hundred One Thousand Eight Hundred Thirty Eight) developers and architects.

64221 views
Abstract: The way LINQ queries are executed depends on the kind of data source being queried. This tutorial talks about how a LINQ query is executed and how this affects performance.
171933 views
Abstract: In LINQ, queries have two different behaviors of execution: immediate and deferred. In this article, we will take a quick overview of how Deferred query execution and Immediate Query Execution works in LINQ
85579 views
Abstract: PLINQ provides support for Parallel programming and is closely related to the Task Parallel Library. In very simple words, PLINQ enables a query to automatically take advantage of multiple processors. In this article, we will see a simple example of transforming a LINQ query to PLINQ.
441661 views
Abstract: I have been writing some LINQ tutorials, tips and How To's on my blog and most of these posts contain short snippets that can be used in your project or that demonstrate how to use LINQ effectively. I wanted to share them with my readers over here. These short examples demonstrate how to use a particular LINQ feature and are listed over here in no particular order.
72835 views
Abstract: In this article, we will see how to perform a JOIN between a Collection and XML Data using LINQ.
645985 views
Abstract: In this article, we will learn LINQ To XML using some ‘How Do I’ kind of examples.
91583 views
Abstract: In this article, we will use LINQ to print the Longest and Shortest Type Name in .NET 4.0.
158555 views
Abstract: I was recently going through the forums and found some developers struggling with queries involving Classes with One-To-Many Relationship. In this article, I will demonstrate how to query a Hierarchical Parent-Child Structure using LINQ.
90000 views
Abstract: This article demonstrates how to query a Web Service’s public API using LINQ
97349 views
Abstract: : In this article, we will read an XML file containing Master-Detail records and represent it as an object using LINQ.
75934 views
Abstract: In this article, we will see how to read and filter the RSS Feed of dotnetcurry.com using LINQ to XML.
88722 views
Abstract: I was recently working on a requirement where I had to read a XML file and then identify a key, value pair and load it into a Dictionary object. I used LINQToXML to solve this requirement.
119061 views
Abstract: In Part I of this article, I shared some common operations on List. In this article, I will share some advanced examples that demonstrate common operations on List
122254 views
Abstract: In this article, I will demonstrate some common operations on List using LINQ
142169 views
Abstract: In this article, I will demonstrate a simple example of converting a List<> to XML using LINQ.

Partitioning Data Using LINQ

Authored by: Suprotim Agarwal in LINQ on 11/16/2009
63771 views
Abstract: We often come across requirements where data needs to be partitioned into two parts and then return one of the parts. The Partition Operators in LINQ helps you partition data. In this article, we will see how to use these operators to partition collections
58771 views
Abstract: In this article, we will see how to select the highest value in a Group or Category using LINQ
39895 views
Abstract: The following article demonstrates how to use LINQ to perform some complex tasks in ASP.NET.
77700 views
Abstract: In this article, I will show you how to ‘query’ the ASP.NET SiteMap using LINQ. The intention of this article is to demonstrate the power and simplicity of querying an XML document like the ASP.NET SiteMap using LINQ.
77450 views
Abstract: Quantifier operations return a Boolean value if some or all of the elements in a sequence satisfy a condition. In this article, we will see some common LINQ to Objects scenarios where we can use these operators.
35881 views
Abstract: While browsing through the forums a couple of days ago, I came across this query where the user wanted to list down the types in .NET 3.5 in the order of the length of their names. He also wanted to find out the total number of types in .NET 3.5 and 2.0. Here’s how to do so using LINQ.
54916 views
Abstract: The ‘GroupBy’ feature in LINQ is amazing and very powerful. In this article, we will see some common GroupBy operations using LINQ.
60639 views
Abstract: In this article, we will see how to create Generic List(T) collection of Anonymous Types using LINQ in C# and VB.NET. We will also explore Extension Methods and see how to call them using AnonymousTypes
41844 views
Abstract: In this article, we will explore some common ‘How Do I’ kind of examples using LINQ to XML. This article is the final part of our 3-part LINQ to XML series.
40073 views
Abstract: In this article, we will explore some common ‘How Do I’ kind of examples using LINQ to XML. This article is the Part II of the 3-part LINQ to XML series.
53153 views
Abstract: In this article, we will explore some common ‘How Do I’ kind of examples using LINQ to XML. This article is the Part I of the 3-part LINQ to XML series.
29904 views
Abstract: LINQ can be used to query on objects that are generic collections and implement the generic IEnumerable interface. However nongeneric collections like the ArrayList do not implement the 'generic' IEnumerable interface. In this article we will see how to use LINQ to query nongeneric collections like the ArrayList.

  
Article Filter :
Per page: