A nice article about LINQ: ToLookup vs ToDictionary
Learning to code, 1990s vs 2026
1 week ago
A nice article about LINQ: ToLookup vs ToDictionary
How to get an indexed item of an IEnumerable object (Linq), this is a question which I often have had when I start using IEnumerable. But it is possible with the ElementAt() extension method!.
On the blog of Scottgu you will find some instructions for installing a Linq to SQL debug visualizer. With this visualizer installer you can see the relating SQL queries for the Linq statements.
if (lCollection.Count() > 0) {
// do something
}
if (lCollection.Any()) {
// do something
}