Linqexchange - linqexchange.com

General Information:

Latest News:

Why LINQ is Better than ForEach 23 Nov 2010 | 09:53 pm

I had a discussion today with a software architect who disagreed with me that LINQ to Objects should be used instead of foreach loops. My claim is that LINQ is better. He says that I shouldn’t make su...

How to Use Let in LINQ Extension Methods 1 Oct 2010 | 08:56 pm

For a variety of reasons (many of which Scott Allen discusses in his wonderful LINQ course), I prefer to use extension method syntax with LINQ instead of query expression syntax. But one thing I miss ...

How to Use Custom Grouping in LINQ 10 Sep 2010 | 08:59 pm

You can use LINQ to write queries that perform grouping of data using group by or ordering of data using orderby clause. LINQ provides the default (and the most common) implementation of both of the o...

How to Implement Paging with LINQ 26 Aug 2010 | 08:48 pm

Before going into how paging is implemented with LINQ, Let’s discuss the need for implementing paging. With large amounts of data, it is not a good practice to pull all records from database when you...

LINQ ToLookup vs ToDictionary 26 Jul 2010 | 08:46 pm

Some people are not sure of the difference between ToLookup vs ToDictionary LINQ methods. To break it down real simple: One is a look up (ToLookup) One is a dictionary (ToDictionary) Duh – that’s ...

Implementing LINQ on the .NET Micro Framework 2 Jul 2010 | 08:03 pm

The .NET Micro Framework, a variant of .NET radically scaled down for embedded systems, does not include the System.Linq namespace and does not provide any LINQ functionality. Because its implementati...

How to Use .Except with EqualityComparer 14 May 2010 | 08:24 pm

Today we’re going to cover an advanced scenario where we need to compare lists of a class we created. We’ll start with an implementation of EqualityComparer<T> which consists of overriding two methods...

Use LINQ and Reflection to Find Matching Properties 22 Apr 2010 | 08:06 pm

As a side product of some experiments I wrote simple LINQ query that matches properties of two objects and returns these properties as list. The code I wrote is pretty simple and I packed it for you a...

Guidelines and Best Practices in Optimizing LINQ 6 Apr 2010 | 08:45 pm

Language Integrated Query (LINQ) is a query execution pipeline for use in the managed environment of .NET Framework. In essence, LINQ is Microsoft’s object relational mapper between your business obje...

Why You Need to Know LINQ to XML 24 Mar 2010 | 07:51 pm

In .NET 3.5, the primary device for general processing of XML is LINQ To XML. This provides a lightweight, LINQ-friendly DOM along with a set of query operators. In SiIlverlight, this is your only ...

Related Keywords:

linq selectmany, linq aggregate, linq average, linq to list, datacontext log textwriter, aggregate in linq, linq groupby, linq filter, linq isnull, linq asparallel groupby

Recently parsed news:

Recent searches: