Hi lets say I have an property path looking like this
We can say that I have an article that has an Vat and Vat has an Value. Now I want to use Linq to sort a list using that property path How can I build that lambda expression when I have "Vat.Value" in a string and I want the following result
list.Order(x => x.Vat.Value)
I will not always know the types of Vat and Value, sometimes its only x.Name I'm out for.
0 Replies