Aug 25 2011

Dynamic Lambda Expression For Sorting A List / Collection Using Complex Types Without Implementing IComparable

Category: .net,ASP.net,Lambda,LINQJebarson @ 8:08 am

You can download the sample project for the article here. ComplexLinqSort.zip (259.64 kb) In my previous post we discussed on sorting the list / collection using dynamic lambda expression for properties. In this article we will see how to sort on complex properties. So what is a complex property. Consider the class diagram as shown [...]


Mar 03 2011

Sort Generic List Using Lambda Expression For Dynamic Type And Dynamic Property

Category: .net,Lambda,LINQJebarson @ 9:46 am

I once stuck on a requirement where I needed to write a code which is flexible and generic enough to sort any type of collection and also the property based on which it has to be sorted will be dynamic. After trying many options I discovered myself how easy it is to hit this requirement [...]