Tag Archives: Linq

LINQ – the order of elements when using Where()

Last week I was askedĀ if the order of elements found using a where clause was guaranteedĀ to be the same as the order of the original collection. That question is hard to answer. In the normal case (where nobody has overwritten … Continue reading

Posted in C#, Linq | Tagged , , , , , , | Leave a comment

Performance of Skip and Take in Linq to Objects

Note: This is not relevant for Linq to Sql or Entity framework, where Skip and Take are transalted into their SQL equivalents. This week I had to write some code where some 500.000 objects in a collection had to chopped … Continue reading

Posted in C#, Linq | Tagged , , , | 1 Comment