Tag Archives: Dynamic Type

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

By | September 17, 2011

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 using Lamda Expression.

How to Sort Generic List Using Lambda Expression For Dynamic Type And Dynamic Property ?

By | March 4, 2011

This tips explained how 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.This is very much easy to hit this requirement using Lamda Expression. Below code will do this for you. We will call this method… Read More »