Top "Linq-to-objects" questions

The term "LINQ to Objects" refers to the use of LINQ queries with any IEnumerable or IEnumerable<T> collection directly, without the use of an intermediate LINQ provider or API such as LINQ to SQL or LINQ to XML.

LINQ Lambda vs Query Syntax Performance

I saw a LINQ query syntax in my project today which was counting items with a specific condition from a …

c# performance linq lambda linq-to-objects
SortedSet / SortedList with better LINQ performance?

Let's say we have a sorted collection such as SortedSet or SortedList with many (10M+) elements. Lots of querying is …

.net linq linq-to-objects sortedlist sortedset
Using LINQ to objects Intersect and Except on a specific property

When I have 2 List<string> objects, then I can use Intersect and Except on them directly to get …

c# linq-to-objects intersect
Splitting an array using LINQ

I have a collection uni-dimensional like this: [1,2,4,5.....n] I would like to convert that collection in a bi-dimensional collection like …

c# .net arrays linq linq-to-objects
How can I use LINQ to avoid nested loops?

I've been reading about LINQ to Objects, and now my colleagues want me to present it to them. Now, I …

c# linq-to-objects