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.

why ForEach Linq Extension on List rather than on IEnumerable

Possible Duplicate: Why is there not a ForEach extension method on the IEnumerable interface? Hello, My question is why Foreach …

c# .net linq ienumerable linq-to-objects
C# Ranking of objects, multiple criteria

I am building a plugin for a LAN party website that I wrote that would allow the use of a …

c# linq linq-to-objects ranking
How to use async lambda with SelectMany?

I'm getting the following error when trying to use an async lambda within IEnumerable.SelectMany: var result = myEnumerable.SelectMany(async (…

c# linq lambda linq-to-objects
Select distinct values in all nested collections using LINQ to objects?

Given the following code setup: public class Foo { List<string> MyStrings { get; set; } } List<Foo> foos = …

linq-to-objects collections distinct
Whats the 'modern' way to find common items in two Lists<T> of objects?

I have two Generic Lists containing different types, for the sake of example, lets call them Products and Employees. I'm …

c# linq linq-to-objects generic-list
LINQ identity function?

Just a little niggle about LINQ syntax. I'm flattening an IEnumerable<IEnumerable<T>> with SelectMany(x =&…

c# linq lambda linq-to-objects
Error in LINQ Left JOIN

i have written below query in LINQ to perform left join but its throwing error: var qry = from c in …

c# .net linq .net-3.5 linq-to-objects
Using LINQ with classes implementing non-generic ICollection

I wanted to run a LINQ query against a MatchCollection object but found this wasn't possible as it doesn't implement …

.net linq generics linq-to-objects icollection
Need to debug LINQ simple queries in Visual Studio 2010

I often get in a position when I need to know why my LINQ doesnt work as intended... I use …

visual-studio-2010 linq debugging linq-to-objects
How to use LINQ to select all descendants of a composite object

How can I make ComponentTraversal.GetDescendants() better using LINQ? Question public static class ComponentTraversal { public static IEnumerable<Component> …

c# linq .net-3.5 linq-to-objects composite