Lambda

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

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 […]

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

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 […]

Scroll to top